Skip to content

Commit 3e9c091

Browse files
weaverryanxabbuh
authored andcommitted
Clarifying what happens with --env=prod + APP_ENV=prod
1 parent 4e24dbc commit 3e9c091

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configuration/dot-env-changes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ important changes:
3030
other environments. You can also create a ``.env.test`` file for test-environment
3131
overrides.
3232

33+
* E) If you pass the ``--env=`` flag when running ``bin/console``, this value will
34+
override your ``APP_ENV`` environment variable (if set). And so, if you pass
35+
``--env=prod``, the DotEnv component *will* try to load your ``.env*`` files.
36+
3337
There are a few other improvements, but these are the most important. To take advantage
3438
of these, you *will* need to modify a few files in your existing app.
3539

0 commit comments

Comments
 (0)