Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
DATABASE_URL environment variable not found - Prisma
P
Prisma
•
16mo ago
•
3 replies
Alex DiGrazia
DATABASE_URL environment variable not found
Error
: Prisma schema validation
-
(get
-config wasm
)
Error code
: P1012
error
: Environment variable not found
: DATABASE
_URL
.
-
-
> prisma
/schema
.
p
r
i
s
m
a
:8
|
7
| provider
=
"postgres
"
8
| url
= env
(
"DATABASE
_URL
"
)
|
Validation Error Count
: 1
[Context
: getConfig
]
anyone else hit this error before
?
I am running a Dockerized Express API on an AWS EC2
, and entered environment variables via the
bash
docker run -e DATABASE_URL=${{ secrets.DATABASE_URL }}
bash
docker run -e DATABASE_URL=${{ secrets.DATABASE_URL }}
-e tag in the docker run command
.
This is all within the context of a CI
/CD pipeline I
'm setting up
.
Currently debugging and digging around for a solution
.
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Environment variable not found: DATABASE_URL
P
Prisma / help-and-questions
14mo ago
PrismaClientInitializationError]: error: Environment variable not found: DATABASE_URL.
P
Prisma / help-and-questions
7mo ago
Missing required environment variable: DATABASE_URL in GitHub CI for generate
P
Prisma / help-and-questions
5mo ago
env variable not found
P
Prisma / help-and-questions
14mo ago