DATABASE_URL not found

When running prisma migrate, prisma cannot find the env variable. Even a postgres instance is connected to the service and it has automatically added the env variable
5 Replies
Percy
Percy2y ago
Project ID: 6d0f799e-be59-4388-899d-f00456f30667
KiBender
KiBender2y ago
6d0f799e-be59-4388-899d-f00456f30667
KiBender
KiBender2y ago
It looks to me like database url is already added
KiBender
KiBender2y ago
This is now solved, The issue was dockerfile didn't have the variable. Added this to my docker file
ARG DATABASE_URL
ENV DATABASE_URL=$DATABASE_URL
ARG DATABASE_URL
ENV DATABASE_URL=$DATABASE_URL
Now the redis database URL is not working. I can see it in railway cli but my app does not see it. Is it because this is a docker deploy? CAN someone help me?