这突然开始,没有任何代码或配置更改:
$ heroku run rails c [ruby-2.3.3]
Running rails c on ⬢ [myHerokuApp]... up, run.3249 (Hobby)
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql_adapter.rb:855:in `initialize': could not connect to server: Connection timed out (PG::ConnectionBad)
Is the server running on host "ec2-107-20-164-164.compute-1.amazonaws.com" (107.20.164.164) and accepting
TCP/IP connections on port 5432?
我在看到网站因应用程序错误而关闭后发现了这一点,并检查了日志:
2016-12-17T14:31:44.366559+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stevelehman.herokuapp.com request_id=83b9ace7-392e-4513-9905-7cd891248d01 fwd="54.162.238.19" dyno= connect= service= status=503 bytes=
寻找任何见解:(我担心数据库“消失了”,但想知道如果没有任何代码/配置更改,这可能会发生。