我已将 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 文档和谷歌搜索都没有让我走上一条让我继续前进的道路。
有任何想法吗?这不是我在 Bamboo stack 上的经验。
我的其他错误显然与未执行的数据库迁移有关。在我可以运行 rake 任务之前,我一直在前进。