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