【问题标题】:web.1: crashed ERROR when scaling dyno on herokuweb.1:在heroku上缩放测功机时崩溃错误
【发布时间】:2015-01-19 15:15:58
【问题描述】:

我刚刚在 heroku 上部署了我的应用程序。然后我跑了:

heroku ps:scale web=1

运行正常,但是当我想检查与 heroku ps 一起使用的测功机时,我得到了以下信息:

=== 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

【问题讨论】:

    标签: ruby-on-rails heroku port


    【解决方案1】:

    试试您在日志中收到的建议:

    Consider using 127.0.0.1 (--binding option)
    

    将您的 Procfile 更改为:

    bin/rails server -p $PORT -e $RAILS_ENV --binding 127.0.0.1
    

    【讨论】:

    • thenks @diego.greybot 但它实际上是关于不断失踪。问题是它不在日志中。
    【解决方案2】:

    日志中没有解决一个错误。我不得不跑:

    heroku run console
    

    获取详细信息。就像他们建议here

    【讨论】:

      猜你喜欢
      • 2018-02-06
      • 2017-02-25
      • 1970-01-01
      • 2013-08-09
      • 2021-10-16
      • 2018-07-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多