web.1:在heroku上缩放dyno时崩溃了错误 [英] web.1: crashed ERROR when scaling dyno on heroku
本文介绍了web.1:在heroku上缩放dyno时崩溃了错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚在heroku上部署了我的应用程序。我跑了:
heroku ps:scale web = 1
很好,但是当我想检查与heroku ps一起使用的dyno时,我得到了以下结果:
=== web(1X):`bin / rails服务器-p $ PORT -e $ RAILS_ENV`
web.1:崩溃2015/01/19 11:18:38 (〜3分钟前)
heroku日志:
2015-01-19T15:14:06.131511 + 00:00 heroku [router]:at = error code = H10
desc =App crashedmethod = GET path = /favicon.ico
host = rock-paper-scissors-test.herokuapp.com
request_id = 27ca44cb-ca4e-473e-9789-0245d393bd56
fwd =190.15.209.212dyno = connect = service = status = 503 bytes =
有什么想法?
更新:
在退出heroku日志前获取以下行:
2015-01-19T15:28:57.189329 + 00:00 app [web.1]:=>注意:服务器正在监听所有接口(0.0.0.0)。考虑使用127.0.0.1( - 绑定选项)
2015-01-19T15:28:57.922629 + 00:00 heroku [web.1]:进程退出状态1
解决方案
有一个错误在日志中没有解决。我必须运行:
heroku run console
以获取详细信息。就像他们建议此处。
i just deployed my app on heroku. The i ran:
heroku ps:scale web=1
Wich ran ok, but when i wanted to check the dyno working with heroku ps i got the following:
=== web (1X): `bin/rails server -p $PORT -e $RAILS_ENV`
web.1: crashed 2015/01/19 11:18:38 (~ 3m ago)
heroku logs:
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=
Any ideas?
UPDATE:
get the following line before exiting on heroku logs:
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
解决方案
There was an error that wasn't being addressed in the logs. I had to run:
heroku run console
to get the details. Just like they advice here.
这篇关于web.1:在heroku上缩放dyno时崩溃了错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文