Open RalphLincoln opened 6 months ago
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.
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
Can you provide more information? Are you actually running into an error? Or are you just seeing this warning but it still works?