Hi all,
I have a question about .env
variables. I have the main .env.production
and then I have different .env*
files to supply to Docker. I have one for each deployment. Consequently I now need to change or keep different .env.production
files for different deployments.
Is it possible to use variable substitution in the .env.production
? I guess it could be done, at least it’s mentioned on the dotenv gem page, but when I do this:
DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/my_db"
the variables are not substituted. Can I achieve this?
Best, seba