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 b47f5c8 commit 1848e00Copy full SHA for 1848e00
components/dotenv.rst
@@ -149,6 +149,13 @@ Use environment variables in values by prefixing variables with ``$``:
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
+Define a default value in case the environment variable is not set:
153
+
154
+ .. code-block:: terminal
155
156
+ DB_USER=
157
+ DB_PASS=${DB_USER:-root}pass # results in DB_PASS=rootpass
158
159
Embed commands via ``$()`` (not supported on Windows):
160
161
.. code-block:: terminal
0 commit comments