:wave: I'm trying to run Prisma Server in an envir...
# orm-help
d
👋 I'm trying to run Prisma Server in an environment where I can only use the port specified in the
PORT
environment variable. This means I can't specify it directly in
PRISMA_CONFIG
. Is there a standard solution for this? I can't seem to find a way. 😕
c
you can set the variable in a .env file, then point docker-compose to that variable. And then in your prisma config file you can do
${env:SOME_VAR}
d
Is the .env/docker-compose portion of that an actual requirement? I tried using
${env:PORT}
from within
PRISMA_CONFIG
with no luck.
In this case I'm on Google Cloud Run, which doesn't have .env and isn't docker-compose.
It would be great to not need to rebuild the image like I ended up doing.