This is my first time using postgresql. I have checked and the server definitely seems to be running but I am getting this error when I start foreman
[...]postgresql_adapter.rb:1206:in `initialize': could not connect to server: No such file or directory (PG::Error)
Any ideas what's going wrong?
Thanks
UPDATE:
I opened pgAdmin and the db is set to listen on port 8000 instead of 5432 (which seems to be what rails wants). I have tried creating a new connection and setting it to 5432 but I get this error:
Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (fe80::1) and accepting TCP/IP connections on port 5432?