虽然提交了配置文件夹,但是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
答案 0 :(得分:0)
强制将另一个git推送到您的远程heroku存储库。今天Heroku上有一些git推送错误。见http://status.heroku.com
答案 1 :(得分:0)
您确定它不是找不到的application.rb
文件吗?你能尝试一下:
$ heroku run bash -a myapp
~ $ ls -al /app/config