2012-05-04 16 views
0

設定フォルダがコミットされているが、Herokuのは、それを参照してくださいdosen't ..私は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 

私はこのようにそれをテストしてみました:Iものの

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

configフォルダがコミットされプッシュされていることを確認してください。

# 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のリポジトリに別のGitのプッシュ:ここ

はgitの状態です。今日、Herokuにいくつかのgit pushエラーがありました。 http://status.heroku.com

+0

私はこのようにプッシュを強制しようとしました:git push heroku master -f、しかし、結果が得られました:これまでのすべてがgit pushを強制する正しい方法ですか? – 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ではappディレクトリと同じレベルにあるはずです。すなわち/config/application.rb - appローカルで起動しますか? –

+0

はい、ローカルで起動します – simo

関連する問題