G
G
grabbee2020-09-18 10:12:00
symfony
grabbee, 2020-09-18 10:12:00

How to change one environment variable?

There are files for DEV and PROD environments - but on prod I want two versions of the site. They differ in just one parameter, the database name. Everything else is identical. Probably you can somehow make .env.prod2 - and specify only one parameter in it. And how then to load .env.prod? Is there any inheritance?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grabbee, 2020-09-18
@grabbee

Configs are loaded once. Then only the code is deployed. Therefore, now manually rewrote the variable in .env.prod on the server. But I believe there is a better way to do it :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question