Prisma database name overwritten with localhost IP
I am new to prisma and have no idea how to fix this problem, an unusual issue:
when I run
In prisma debug mode the logs are following, despite correct connectionString in adapter somehow the database name is overwritten with localhost IP
I manually ran npx prisma generate in the container, it found the env variables and loaded them and it did its job. Then I tried to run the client, the output was:
and then the error still persists:
when I run
npx prisma migrate deploy, DB is migrated and the tables are created. but when I run the app, the client gives me following error: User was denied access on the database localhost. Error: P1010. With the same connection url string for client and migration, why the client is using localhost?In prisma debug mode the logs are following, despite correct connectionString in adapter somehow the database name is overwritten with localhost IP
I manually ran npx prisma generate in the container, it found the env variables and loaded them and it did its job. Then I tried to run the client, the output was:
and then the error still persists:
User was denied access on the database <container_ip>