php 部署到heroku上

原创
2016-07-28 08:28:12 851浏览

1、先注册heroku账号
2、先安装heroku toolbelt 工具 https://toolbelt.heroku.com/debian

wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh

heroku login
输入注册的账号邮箱和密码
进入到你要上传目录

cd /yourAPP
git init 
git add .
git commit -m "first commit"

创建你在heroku的app

heroku create (会生成默认的目录)
heroku create --stack cedar yourApp (heroku create --stack cedar 只对php有效)
git push heroku master

就ok了

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介绍了 php 部署到heroku上,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

  • 声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。