10 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.
Pinned Solution
10 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
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 Failed to start application: PrismaClientInitializationError: error: Environment variable not found: DATABASE_URL.
- 🧵 Environment variable DATABASE_URL is unknown.
- 🧵 Why is there always an environment variable configuration error?
If you find the answer from one of these, please let us know by solving the thread!
10 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.
10 months ago
That worked! Thanks!
Status changed to Solved noahd • 9 months ago