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了
使用基于模式的扫描和 Gitleaks 规则定义以及 GitHub Secret Scanning API 来检测 Git 仓库中的泄露密钥。使用 git log --all -p 分析识别完整提交历史中暴露的 API 密钥、令牌和凭证。
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
以上就介绍了 php 部署到heroku上,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
php免费学习视频:立即使用
踏上前端学习之旅,开启通往精通之路!从前端基础到项目实战,循序渐进,一步一个脚印,迈向巅峰!










