Deploy errors many times
alexisjrfreitas
HOBBYOP

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!

$10 Bounty

1 Replies

Railway
BOT

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


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.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...