How to get DATABASE_URL in environment
vinkaga
HOBBYOP

9 months ago

Hello,

I am using this to set DATABASE_URL in variables

DATABASE_URL=${{ DATABASE_URL }}

But it isn't showing up in environement

"Error: Config validation error: "DATABASE_URL" is not allowed to be empty. "REDIS_URL" is not allowed to be empty"

What is the correct way to get it in environment?

Thanks.

Solved$10 Bounty

Pinned Solution

9 months ago

Where are you setting this value?

If you have a Postgres service in the same project, it would be ${{Postgres.DATABASE_URL}}, if Postgres is the name of that service.

3 Replies

Railway
BOT

9 months ago


9 months ago

Where are you setting this value?

If you have a Postgres service in the same project, it would be ${{Postgres.DATABASE_URL}}, if Postgres is the name of that service.


vinkaga
HOBBYOP

9 months ago

That worked! Thanks!


Status changed to Solved noahd 8 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...