我最近在 heroku 上部署了使用 RoR 构建的个人网站。今天我试图打开我的网站,但该网站已关闭。如果我想确保进程自动重新启动是 RoR 或 heroku 的功能吗?在这种情况下,最佳做法是什么?
更新:这是解决问题的heroku日志:
2013-06-10T08:24:12.852597+00:00 heroku[web.1]: Idling
2013-06-10T08:24:15.762803+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-06-10T08:24:16.487918+00:00 app[web.1]: [2013-06-10 08:24:16] ERROR SignalException:
SIGTERM
2013-06-10T08:24:16.487918+00:00 app[web.1]:
/usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-06-10T08:24:26.878674+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one
process failed to exit within 10 seconds of SIGTERM
2013-06-10T08:24:26.878857+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-06-10T08:24:29.279913+00:00 heroku[web.1]: Process exited with status 137
2013-06-10T08:24:29.299601+00:00 heroku[web.1]: State changed from up to down