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.
2 parents 9d464c0 + 07c50d0 commit cbbae8aCopy full SHA for cbbae8a
components/dotenv.rst
@@ -137,6 +137,14 @@ Use environment variables in values by prefixing variables with ``$``:
137
DB_USER=root
138
DB_PASS=${DB_USER}pass # Include the user as a password prefix
139
140
+.. note::
141
+
142
+ The order is important when some env var depends on the value of other env
143
+ vars. In the above example, ``DB_PASS`` must be defined after ``DB_USER``.
144
+ Moreover, if you define multiple ``.env`` files and put ``DB_PASS`` first,
145
+ its value will depend on the ``DB_USER`` value defined in other files
146
+ instead of the value defined in this file.
147
148
Embed commands via ``$()`` (not supported on Windows):
149
150
.. code-block:: terminal
0 commit comments