2 hours ago
My app service keeps failing to start because DATABASE_URL is empty at runtime.
I set it as a reference to my Postgres service (${{ Postgres.DATABASE_URL }}), but after deploy it either reverts to an old service ID form (${{ 35678e1c-... }}) or resolves to empty.
Pasting the connection string directly works, so the issue is specifically the reference variable resolution.
I already deleted the project and i already try it from scratch, and same thing.
Thanks!
1 Replies
2 hours ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • about 2 hours ago
an hour ago
Looks like the variable is not resolving correctly, might by getting stuck on an old service ID.
Go to Variables tab for your specific app service and re add the DATABASE_URL variable to point directly to your Postgres service using the current, correct service name.