[英]Git pushing to heroku rejected (non-fast-forward updates)
I tried going back to a previous commit on git. 我试图回到以前的git提交。 Now I'm trying to push it back to heroku. 现在,我正在尝试将其推回heroku。
git push staging-heroku staging:master
To git@heroku.com:MyApp.git
! [rejected] staging -> master (non-fast-forward)
error: failed to push some refs to 'git@heroku.com:MyApp.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
I searched Stackoverflow and they're saying 我搜索了Stackoverflow,他们说
git push -f git@heroku.com:<heroku repo name>.git
I tried that and I get 我尝试了一下
Total 0 (delta 0), reused 0 (delta 0)
! Push rejected, no Cedar-supported app detected
To git@heroku.com:MyApp.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@MyApp.git'
Winfield's suggesting checking my Procfile 温菲尔德的建议检查我的Procfile
cat Procfile
web: node app.js
git add Procfile and git push -f git@heroku.com:MyApp.git gives me the same error message. git add Procfile和git push -f git@heroku.com:MyApp.git给了我同样的错误消息。
The current error you're seeing is the Heroku Ruby buildpack failing to identify and integrate with a Ruby application from your git repo. 您当前看到的错误是Heroku Ruby buildpack无法从git repo识别并与Ruby应用程序集成。
This means you are missing one or more of the following: 这意味着您缺少以下一个或多个:
Gemfile
with gem depdencies and ruby version Gemfile
与宝石depdencies和红宝石版本 Procfile
with one or more ruby processes to run Procfile
具有一个或多个运行的ruby进程
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.