How to get DATABASE_URL in environment
vinkaga
HOBBYOP

6 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

6 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

6 months ago


6 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

6 months ago

That worked! Thanks!


Status changed to Solved noahd 7 months ago


Status changed to Solved noahd 5 months ago


Loading...