当您运行git push heroku master
时。它显示错误,如下所示。我认为git不允许代码推送。
ubuntu @ ubuntu14:/ var / www / html / heroku / ssp / newone $ git push heroku master计数对象:3,完成。写入对象:100%(3/3),224个字节| 0字节/秒,完成。总计3(增量0),重用0(增量0)remote:压缩源文件...完成。远程:构建源:远程:远程:!无法为此应用检测到默认语言。remote:提示:当Heroku无法自动检测到要用于该应用程序的buildpack时,就会发生这种情况。远程:请参阅https://devcenter.heroku.com/articles/buildpacks远程:远程:!推送失败远程:正在验证部署...远程:远程:!推送被拒绝至hidden-eyrie-58569。远程:到https://git.heroku.com/hidden-eyrie-58569.git! [远程拒绝]主机->主机(预接收挂钩被拒绝)错误:无法将某些引用推送到“ https://git.heroku.com/hidden-eyrie-58569.git”
感谢您给我这个主意。它与
heroku buildpacks:set heroku / php
也许您忘记了
git add .
git commit -m "your message"
只有午餐
git push heroku master