Deploy errors many times
alexisjrfreitas
HOBBYOP

3 months 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

2 Replies

Railway
BOT

3 months ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • 3 months ago


3 months 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.


3 months ago

What's your current status


Welcome!

Sign in to your Railway account to join the conversation.

Loading...