Can't connect to the database from my application.
petar
TRIALOP
2 years ago
I have a PostgreSQL service and an app service. I referenced the DATABASE_URL variable in my SvelteKit application and checked that the environment variable was read and set up correctly.
Still, when my app tries to start up, I receive the error: ECONNREFUSED: Failed to connect.
I run the migrate.ts file on the build, where it throws the error. This is the migrate.ts file: https://gist.github.com/wunki/751f1e3661f727f7a1657646afbdfc19
I'm unsure what I'm missing that will cause the connection to fail, and I would appreciate any help.
ⓘ Deployment information is only viewable by project members and Railway employees.
0 Replies