Created
December 19, 2018 00:05
-
-
Save mihow/51aa5ee90a21a153921db63882183f9e to your computer and use it in GitHub Desktop.
Set environment vars from a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignores commented out lines and handles spaces | |
# https://stackoverflow.com/questions/19331497/set-environment-variables-from-file-of-key-pair-values | |
export $(grep -v '^#' .env | xargs -d '\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment