Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable not found on latest alpha release #1613

Closed
impowski opened this issue Feb 14, 2020 · 2 comments
Closed

Environment variable not found on latest alpha release #1613

impowski opened this issue Feb 14, 2020 · 2 comments
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/regression A reported bug in functionality that used to work before.
Milestone

Comments

@impowski
Copy link

OS: MacOS
Prisma Version: prisma2@2.0.0-alpha.785, binary version: 3e74ccae138e0c7330c1d8f2a67fb7a234d220e8

When I'm running a prisma2 generate I get this error:

Error: Schema parsing
error: Environment variable not found: DATABASE_URL.
  -->  schema.prisma:3
   | 
 2 |   provider = "postgresql"
 3 |   url      = env("DATABASE_URL")
   | 

DATABASE_URL is present inside .env file.

@janpio janpio added kind/regression A reported bug in functionality that used to work before. bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. labels Feb 14, 2020
@janpio janpio added this to the Preview 22 milestone Feb 14, 2020
@janpio
Copy link
Member

janpio commented Feb 14, 2020

image

@timsuchanek
Copy link
Contributor

Thanks for reporting @impowski!
This is a breaking change, we intentionally introduced in alpha.
#1519
So please move the .env file into the ./prisma folder, then it should work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/regression A reported bug in functionality that used to work before.
Projects
None yet
Development

No branches or pull requests

3 participants