Ruby on rails Heroku Rails应用程序版本1.2.6推送失败:无法识别的错误

Ruby on rails Heroku Rails应用程序版本1.2.6推送失败:无法识别的错误,ruby-on-rails,ruby,heroku,Ruby On Rails,Ruby,Heroku,我在尝试推送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 git@heroku.com:myproject.git ! [remote rejected] master -> mas

我在尝试推送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 git@heroku.com:myproject.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:myproject.git'

Heroku不支持低于2.0的Rails。这可能会很痛苦,但如果你想和Heroku呆在一起,你必须至少升级到Rails 2.3.5


看来这是你的档案。如果您正在使用
sqlite3
,请将行
gem sqlite3
更改为
gem pg


关于“Rails 2.3.5及更早版本应该可以在任何Heroku堆栈上工作”的问题呢?“Heroku支持从2.0到3.0.x的所有Rails版本”,不幸的是,Rails领域的3.5年时间太长了。1.2.6还存在一些安全漏洞