A
A
ADA M2018-03-06 15:54:29
symfony
ADA M, 2018-03-06 15:54:29

How to set environment variables for 2 or more Symfony4 applications?

Please tell me how to set environment variables on VPS for multiple applications on SF4?
For example, there is a .env file on dev:
APP_ENV=dev
APP_SECRET=...
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
I'll put this in /etc/enviroment in the VPS. But if I have another site on symphony, then how to specify other APP_SECRET and DATABASE_URL for it?
Or have I misunderstood something?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-03-06
@Sanasol

/etc/environment in VPS

and why suddenly the project settings should be there?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question