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

时间:2022-06-01 20:06:22

I get this error when trying to push a Rails app v. 1.2.6 to 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 个解决方案

#1


2  

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.

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

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

#2


1  

It seems it's your gemfile. If your are using sqlite3, change the line gem sqlite3 to gem pg.

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

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

#1


2  

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.

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

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

#2


1  

It seems it's your gemfile. If your are using sqlite3, change the line gem sqlite3 to gem pg.

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

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