Heroku Rails app v 1.2.6无法推送:无法识别的错误

时间:2011-09-02 16:36:19

标签: 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 -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:myproject.git'

2 个答案:

答案 0 :(得分:2)

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

http://devcenter.heroku.com/articles/rails

答案 1 :(得分:1)

这似乎是你的宝石文件。如果您使用的是sqlite3,请将行gem sqlite3更改为gem pg

http://devcenter.heroku.com/articles/rails3