Created
October 13, 2017 15:34
-
-
Save maticzav/b5ff95214d12668f96a26ff4c92b7dab to your computer and use it in GitHub Desktop.
direnv - .envrc production/dev config
This file contains hidden or 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
#!/bin/bash | |
unset FOO | |
echo "env: $NODE_ENV" | |
if [ "$NODE_ENV" == "production" ] | |
then | |
export FOO=qux | |
else | |
export FOO=bar | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment