We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9947271 commit f462027Copy full SHA for f462027
components/dotenv.rst
@@ -97,6 +97,14 @@ Use environment variables in values by prefixing variables with ``$``:
97
DB_USER=root
98
DB_PASS=${DB_USER}pass # Include the user as a password prefix
99
100
+.. note::
101
+
102
+ The order is important when some env var depends on the value of other env
103
+ vars. In the above example, ``DB_PASS`` must be defined after ``DB_USER``.
104
+ Moreover, if you define multiple ``.env`` files and put ``DB_PASS`` first,
105
+ its value will depend on the ``DB_USER`` value defined in other files
106
+ instead of the value defined in this file.
107
108
Embed commands via ``$()`` (not supported on Windows):
109
110
.. code-block:: terminal
0 commit comments