Skip to content

Instantly share code, notes, and snippets.

@maticzav
Created October 13, 2017 15:34
Show Gist options
  • Save maticzav/b5ff95214d12668f96a26ff4c92b7dab to your computer and use it in GitHub Desktop.
Save maticzav/b5ff95214d12668f96a26ff4c92b7dab to your computer and use it in GitHub Desktop.
direnv - .envrc production/dev config
#!/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