pedro
Explore posts from serversPPrisma
•Created by pedro on 10/29/2024 in #help-and-questions
Help. Prisma ORM is not loading environment variables
When I run
db:deploy
. It always errors saying DATABASE_URL was not found if the DATABASE_URL is not present on a .env file.
I've run echo $DATABASE_URL
it returns postgres://pos...
(the correct DATABASE_URL).
If this same DATABASE_URL
is present on a .env
file. It works correctly.
I'm using the folder schemas, so I tried to make the schema path explicit like this:"
"db:deploy": "prisma migrate deploy --schema ./prisma/schema"
But this also fails7 replies