1、先注册heroku账号
2、先安装heroku toolbelt 工具 https://toolbelt.heroku.com/debian
wget -O- https://toolbelt<span>.heroku</span><span>.com</span>/install-ubuntu<span>.sh</span> | sh
heroku login
输入注册的账号邮箱和密码
进入到你要上传目录
<span>cd</span> /yourAPP git init git add . git commit -m <span>"first commit"</span>
创建你在heroku的app
heroku <span><span>create</span> (会生成默认的目录) heroku <span>create</span> --stack cedar yourApp (heroku <span>create</span> --stack cedar 只对php有效)</span>
git <span>push</span> heroku master
就ok了
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });以上就介绍了 php 部署到heroku上,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号