Hi, can anyone please help me. I'm using Prisma on...
# orm-help
s
Hi, can anyone please help me. I'm using Prisma on a Heroku server, I'm trying to deploy the database after I destroyed the last database. Now it's still using the old env variables instead of the new one. Edit: The old env. variable is not in the Heroku settings anymore and the new one is. So when Prisma is logging: 'Environment variables loaded from .env' it in practice is loading them from somewhere else it seems? Edit2: If I retrieve the DATABASE_URL env. with the CLI command:
heroku config:get DATABASE_URL -s >> .env
It saves the correct url to my local .env file. So the correct environmental variable is there and is begint used, just not by the Prisma Client. Edit3: So I resolved it by canning the Heroku app and starting from scratch, now I just hope this doesn't happen when my app goes to production 🤞
l
Setting of variables is a Heroku thing, IIRC
s
The variable that is in the settings is correct, so somehow Prisma has the old version.
The old version is not to be found in the settings.
l
Then I don't know, moved away from Heroku