2012-05-04 45 views
0

虽然config文件夹承诺,Heroku的这么想的看到它.. 当我做heroku run rake db:migrate我得到这个错误:Heroku无法看到配置文件夹;为什么?

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 

虽然我肯定配置文件夹是承诺和推动,可以有人帮助我吗?

这里是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

'git status'显示什么? – matt

+0

请参阅上面的编辑 – simo

回答

0

队另一混帐推到远程的Heroku库。今天Heroku上有一些git推送错误。请参见http://status.heroku.com

+0

我试图像这样强制推送:git push heroku master -f,但是,我得到一个结果:一切都是最新的,这是强制推送git的正确方法吗? – simo

+0

对某个文件进行更改,执行本地提交,然后再次推送到Heroku。 –

+0

我试图对boot.rb和application.rb进行修改,提交并做了另一次推送,但是,我有同样的错误。 – simo

0

您确定它不是application.rb文件,它找不到?你可以尝试:

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

是的,这里是我得到的: ls:无法访问/ app/config:没有这样的文件或目录 – simo

+0

您的耙子输出表明它试图从/ app/config文件夹中加载application.rb,而在Rails中它应该与应用程序目录处于同一级别,例如/config/application.rb - 应用程序本地启动? –

+0

是的,它在本地启动 – simo

相关问题