Closed aschempp closed 6 years ago
There are valid reasons why Symfony recommends not to use the Dotenv component in production.
Yes, the don't recommend it, because you should use environment variables. Unfortunately, as we know, 95% of Contao setups on shared hosting don't support environment variables. That's what the DotEnv component is for. If your server does support ENV variables, don't create the file and use it to adjust your setup, and then this will work as well. Obviously not through the Contao Manager, but if you have and use environment variables, you probably don't need the Contao Manager.
Correct me if I'm wrong, but environment variables can easily be set in e.g. a .htacces
file.
<IfModule mod_env.c>
SetEnv SYMFONY_ENV prod
</IfModule>
But nevertheless, this kind of configuration should go into the parameters.yml
file in production!
But nevertheless, this kind of configuration should go into the parameters.yml file in production!
No they don't, because this is application configuration that is loaded before the kernel is booted or the container is available.
Thank you @aschempp.
fixes https://github.com/contao/manager-bundle/issues/63