将代码推送到服务器时出现 Heroku 问题
Heroku issue while pushing code to the server
当你 运行 git push heroku master
。它显示错误,如下所示。我认为 git 不允许代码推送。
ubuntu@ubuntu14:/var/www/html/heroku/ssp/newone$ git push heroku master
Counting objects: 3, done.
Writing objects: 100% (3/3), 224 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to hidden-eyrie-58569.
remote:
To https://git.heroku.com/hidden-eyrie-58569.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/hidden-eyrie-58569.git'
谢谢你给我出主意。它适用于
heroku buildpacks:set heroku/php
也许你忘了
git add .
git commit -m "your message"
只有午餐
git push heroku master
当你 运行 git push heroku master
。它显示错误,如下所示。我认为 git 不允许代码推送。
ubuntu@ubuntu14:/var/www/html/heroku/ssp/newone$ git push heroku master Counting objects: 3, done. Writing objects: 100% (3/3), 224 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: ! No default language could be detected for this app. remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically. remote: See https://devcenter.heroku.com/articles/buildpacks remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to hidden-eyrie-58569. remote: To https://git.heroku.com/hidden-eyrie-58569.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/hidden-eyrie-58569.git'
谢谢你给我出主意。它适用于
heroku buildpacks:set heroku/php
也许你忘了
git add .
git commit -m "your message"
只有午餐
git push heroku master