melatonin2
melatonin2
RRailway
Created by melatonin2 on 7/10/2023 in #✋|help
Connection to socket error
Project ID: f07c5fa0-4ed9-4495-b191-14f1a256e531 I'm deploying a Rails app which uses PostgreSQL database. Firstly I set up the Procfile, then proceeded to deploy Postgres and Redis to my project. Lastly I started deploying my app via GitHub. The build process completes no problem, however while deploying the project I get this error:
PG::ConnectionBad: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
PG::ConnectionBad: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?
I don't get whether it's a problem on my local machine, or on the website itself? PostgreSQL works fine on local (Ubuntu), socket 5432 accepts conections (checked that) and file ".s.PGSQL.5432" exists at that path. Also a side question: do I have to be running the app on my local machine while deploying the app?
4 replies