Heroku不承认Rails应用程序

时间:2011-11-18 11:06:33

标签: ruby-on-rails ruby-on-rails-3 heroku

我无法推送到Heroku,不幸的是,StackOverflow上的其他任何问题都没有帮助。 我使用的是Rails 3.0.9和 Heroku并不能将我的应用识别为Rails应用。

$ git push heroku master

Counting objects: 378, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (311/311), done.
Writing objects: 100% (378/378), 134.64 KiB, done.
Total 378 (delta 143), reused 107 (delta 12)

-----> Heroku receiving push
-----> Removing .DS_Store files

 !     Heroku push rejected due to an unrecognized error.
 !     We've been notified, see http://support.heroku.com if the problem persists.


To git@heroku.com:cold-xyz.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:cold-xyz.git'

2 个答案:

答案 0 :(得分:1)

存储库的布局错误。

我的rails应用程序位于存储库的子目录中。我将Rails的根目录设置为存储库根目录并修复它:

git mv subdirectory/* .

答案 1 :(得分:0)

尝试更新您的捆绑包,然后再次推送它。

或者可能与gemlock文件有关?

否则,如果全部失败,您可以删除.git文件并重新启动。

相关问题