Heroku Rails 应用程序 v 1.2.6 推送失败:无法识别的错误
当尝试将 Rails 应用程序 v.1.2.6 推送到 Heroku 时,我收到此错误:
! Heroku push rejected due to an unrecognized error.
! We've been notified, see http://support.heroku.com if the problem persist
s.
To [email protected]:myproject.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:myproject.git'
I get this error when trying to push a Rails app v. 1.2.6 to Heroku:
! Heroku push rejected due to an unrecognized error.
! We've been notified, see http://support.heroku.com if the problem persist
s.
To [email protected]:myproject.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:myproject.git'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Heroku 不支持 2.0 以下的 Rails。这可能会很痛苦,但如果您想继续使用 Heroku,则必须至少升级到 Rails 2.3.5。
http://devcenter.heroku.com/articles/rails
Heroku doesn't support Rails below 2.0. It might be painful but if you want to stay with Heroku you'd have to upgrade to at least Rails 2.3.5.
http://devcenter.heroku.com/articles/rails
看来这是你的 gemfile。如果您使用的是
sqlite3
,请将行gem sqlite3
更改为gem pg
。http://devcenter.heroku.com/articles/rails3
It seems it's your gemfile. If your are using
sqlite3
, change the linegem sqlite3
togem pg
.http://devcenter.heroku.com/articles/rails3