开发者

Rails 3 Postgres working on Heroku but no longer locally PGError could not connect to server

开发者 https://www.devze.com 2023-03-31 15:11 出处:网络
I\'m using postgres 8.4 and Rails 3.0.9 A couple of days ago I was using this combo fine locally and on Heroku.Today I load my Rails server locally and I get two new messages, a Deprecation Warning a

I'm using postgres 8.4 and Rails 3.0.9

A couple of days ago I was using this combo fine locally and on Heroku. Today I load my Rails server locally and I get two new messages, a Deprecation Warning and a PGError.

The warning was that this:

config.action_view.debug_rjs

will no longer be supported in Rails 3.1. I checked and I'm still using 3.0.9 just to be sure.

That was easily taken care of. However the PGError is leaving me scratching my head.

could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "???" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "???" and accepting
TCP/IP conn开发者_如何学Cections on port 5432?

I tried a bundle install and a bundle update. The "is the server running on host '???'" seems to be strange but what does that mean?

Everything is working fine on Heroku. I checked all my init and configure files and they all look the same as they were a few days ago. Have any updates happened that might have caused this?


Have you checked if postgres database is running on specified host? Is database you're trying to connect works on localhost or on external sever?

0

精彩评论

暂无评论...
验证码 换一张
取 消