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

WARNING: env var which was defined in the Prisma schema is not setDATABASE_URL #1245

Open
RalphLincoln opened this issue Apr 18, 2024 · 3 comments
Assignees

Comments

@RalphLincoln
Copy link

No description provided.

@steebchen
Copy link
Owner

Can you provide more information? Are you actually running into an error? Or are you just seeing this warning but it still works?

@krishna8421
Copy link

Hey @steebchen , Actually it is just showing this warning.

➜  go run main.go
WARNING: env var which was defined in the Prisma schema is not setDATABASE_URL
2024/05/24 12:55:08 Connected to database
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

I have DATABASE_URL set in .env file and db push is working fine and database is also connecting as expected.

@steebchen
Copy link
Owner

Ah thanks for this. Then all is good. I will figure out how to hide this warning as it is not actually true that anything is missing, thanks

@steebchen steebchen self-assigned this May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants