SwiftOne
Can't run service with CLI and connect to Postgres service
I have been trying to figure out some basic connections to use "railway run" locally for development, and have struggled where the documentation appears to be out of date or too thin (or where I'm being dumb).
I have a NodeJS express service and a Postgres service. I've (finally) gotten the express service able to connect to Postgres when deployed, but "railway run npm start" locally gives me an ENOTFOUND error accessing meticulous-empthy.railway.internal. (Which is obtained via me defining a DATABASE_URL= ${{ meticulous-empathy.DATABASE_URL }} for the express service)
running railway link -p PROJECTID still asks for which service to connect to (docs don't read like that should happen?) and I'm currently connected to the express service. Is there a step I've missed to make this work locally?
Project ID:
e1777fb1-9108-4e98-8bbd-60602862aa10
11 replies