Heroku看不到config文件夹;为什么?

时间:2012-05-04 02:59:57

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

虽然提交了配置文件夹,但是heroku看不到它。 当我heroku run rake db:migrate时,我收到此错误:

Running rake db:migrate attached to terminal... up, run.1
rake aborted!
no such file to load -- /app/config/application

我试着像这样测试:

$ heroku run bash -a myapp
~ $ ls config
ls: cannot access config: No such file or directory 

虽然我确定config文件夹已提交并推送,但有人可以帮助我吗?

这是git状态:

# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#   new file:   .gitignore~
#   modified:   .idea/workspace.xml
#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   .idea/workspace.xml

2 个答案:

答案 0 :(得分:0)

强制将另一个git推送到您的远程heroku存储库。今天Heroku上有一些git推送错误。见http://status.heroku.com

答案 1 :(得分:0)

您确定它不是找不到的application.rb文件吗?你能尝试一下:

$ heroku run bash -a myapp
~ $ ls -al /app/config