lerni

that is how it's documented - you shouldn't use .env in prod... searching the link

dorsetdigital

But you can always set the environment variables in the server config

dorsetdigital

I've heard that a lot, but never seen any actual proper evidence to support it 🙂

sander_ha

By the way I was also reading something about .env the other day. Appearently its quite heavy/slow for the server to read .env and pass it to PHP. This is why Laravel for example, generates a bunch of .php files in production mode, instead of reading from .env.

Does SilverStripe4 do anything like this?

dorsetdigital

and you're not having to try and bypass the configuration stuff

sander_ha

You mean by doing something like Config::inst()->update() in _config.php?