Referencing other environment variables in .env

Posted 11 months 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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.