完美的工作Heroku应用程序崩溃,无法重新启动

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了完美的工作Heroku应用程序崩溃,无法重新启动相关的知识,希望对你有一定的参考价值。

使用Spree并在Heroku上托管的我的Rails应用程序工作正常,直到昨晚,但我今天早上醒来发现应用程序崩溃了,我不知道为什么。我最近没有做任何改变。我试过heroku重启没有成功。 Heroku看起来有些事情(日志问我关于亚马逊主机是否正在运行的问题?)我怎么让他们知道为我解决这个问题?

2013-06-04T06:47:59.795210+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1076:in `initialize': could not connect to server: Connection refused (PGError)
2013-06-04T06:47:59.795659+00:00 app[web.1]:    from /app/vendor/bundle/ruby/1.9.1/bundler/gems/spree-58e0391d3496/core/config/initializers/spree.rb:15:in `<top (required)>'
2013-06-04T06:47:59.795210+00:00 app[web.1]:    Is the server running on host "ec2-54-243-188-56.compute-1.amazonaws.com" and accepting
2013-06-04T06:47:59.795210+00:00 app[web.1]:    TCP/IP connections on port 5442?
答案

http://help.heroku.comOpen a Support Ticket

另一答案

检查终端的日志

heroku logs --app <heroku app name>

检查崩溃堆栈跟踪,然后从仪表板重新启动所有dynos

enter image description here

以上是关于完美的工作Heroku应用程序崩溃,无法重新启动的主要内容,如果未能解决你的问题,请参考以下文章

在nodejs中重新启动heroku dyno

部署到 Heroku 时 Django 应用程序崩溃 - Worker 无法启动

为啥当我的 heroku 应用程序崩溃时出现 mongodb 错误? (在本地工作就好了!)

为啥我在 heroku 上的应用程序在 30 秒后崩溃?

如何在heroku上重新启动rails应用程序

Route 使 heroku-app 崩溃,但在 localhost 上工作