web.1:在heroku上缩放dyno时崩溃了ERROR
我刚刚在heroku上部署了我的应用程序。 我跑了:
heroku ps:scale web=1
运行正常,但是当我想检查使用heroku ps的dyno时,我得到了以下内容:
=== web (1X): `bin/rails server -p $PORT -e $RAILS_ENV` web.1: crashed 2015/01/19 11:18:38 (~ 3m ago)
heroku日志:
2015-01-19T15:14:06.131511+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rock-paper-scissors-test.herokuapp.com request_id=27ca44cb-ca4e-473e-9789-0245d393bd56 fwd="190.15.209.212" dyno= connect= service= status=503 bytes=
有任何想法吗?
更新:
在退出heroku日志之前获取以下行:
2015-01-19T15:28:57.189329+00:00 app[web.1]: => Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option) 2015-01-19T15:28:57.922629+00:00 heroku[web.1]: Process exited with status 1
尝试在日志中收到的建议:
Consider using 127.0.0.1 (--binding option)
将您的Procfile更改为:
bin/rails server -p $PORT -e $RAILS_ENV --binding 127.0.0.1
日志中没有解决错误。 我不得不跑:
heroku run console
得到细节。 就像他们在这里建议一样。
- 在Heroku上运行连续运行的工作进程
- 使用asset_sync(S3 / CDN)将./资产放入.slugignore进行Heroku部署
- 亚马逊Route 53 + Heroku应用程序无法从某些地方访问 – 该怎么办?
- RoR2.8和Heroku:我安装了一个插件,在本地工作,现在heroku根本不起作用
- Heroku字体资产不起作用
- 已validation的电子邮件不通过Heroku / Mailgun发送
- Rit错误与git push heroku master错误
- 在Procfile中启动多个worker(开发环境vs Heroku)
- 使用Rails secrets.yml的逐步说明,在部署到Heroku时不会将密钥暴露给公共仓库