Referencing other environment variables in .env

Posted 1 year ago by JussiMannisto

Hi,

When defining environment variables in the .env file, is there a way of referencing a variable that was defined earlier? I'd like to do something like this:

INDEX_NAME=dev_index
UPDATE_INDEXER_COMMAND="/some-path/indexer.sh $INDEX_NAME --update"
LIVE_INDEXER_COMMAND="/some-path/indexer.sh $INDEX_NAME --live"
...

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.