Rails 3.1 アプリを Heroku Cedar スタックにデプロイし、次のことを実行しようとしています。
heroku run rake db:migrate
戻ります:
Running console attached to terminal...
Error connecting to process
また、コンソールを単純に起動しようとします。
heroku run console
どの実行コマンドでも同じエラーが返されます。
Running console attached to terminal...
Error connecting to process
ログを見ると、エラー コードが表示されます。
2011-09-25T16:04:52+00:00 app[run.2]: Error R13 (Attach error) -> Failed to attach to process
現在のプロセスをheroku ps
確認すると、試行が実行されていることがわかります。
Process State Command
------------ ------------------ ------------------------------
run.2 complete for 26m bundle exec rails console
run.3 up for 27s bundle exec rails console
run.4 up for 3s bundle exec rake db:create
web.1 up for 46s bundle exec thin start -p $PORT -e..
しかし、それぞれが例外を発生させています。
2011-09-25T16:31:47+00:00 app[run.3]: Error R13 (Attach error) -> Failed to attach to process
2011-09-25T16:31:47+00:00 heroku[run.3]: Process exited
2011-09-25T16:31:48+00:00 heroku[run.3]: State changed from up to complete
2011-09-25T16:32:11+00:00 app[run.4]: Error R13 (Attach error) -> Failed to attach to process
2011-09-25T16:32:11+00:00 heroku[run.4]: Process exited
2011-09-25T16:32:12+00:00 heroku[run.4]: State changed from up to complete
サーバー管理者は私の好みではないので、Heroku を使用することにしました。
Heroku のドキュメントと Google の両方が、私に先へ進む道を案内してくれませんでした。
何か案は?これは、Bamboo スタックでの私の経験ではありません。
私の他のエラーは、明らかに DB 移行が実行されていないことに関連しています。レーキ タスクを実行できるようになるまで、先に進めません。