diff --git a/deployment.rst b/deployment.rst index 369256bf316..e3bbea2a2a8 100644 --- a/deployment.rst +++ b/deployment.rst @@ -166,6 +166,21 @@ most natural in your hosting environment. $ composer dump-env prod --empty + Sometimes ``composer`` may not be installed on your hosting environment. Thus you + have to install and package Composer related code logic way before deploying. + Another way to generate this optimized file is to manually register the built in + command `Symfony\\Component\\Dotenv\\Command\\DotenvDumpCommand` + and use it: + + .. code-block:: yaml + + services: + Symfony\Component\Dotenv\Command\DotenvDumpCommand: ~ + + .. code-block:: terminal + + $ APP_ENV=prod APP_DEBUG=0 php bin/console dotenv:dump + C) Install/Update your Vendors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~