How to get DATABASE_URL in environment
vinkaga
HOBBYOP

3 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

3 Replies

Railway
BOT

3 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

3 months ago

That worked! Thanks!


Status changed to Solved noahd 3 months ago


Status changed to Solved noahd 2 months ago


Loading...