Skip to content

Instantly share code, notes, and snippets.

@hashlash
Last active July 7, 2020 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hashlash/3cd999d3aacf0f368ff141515b1ebabc to your computer and use it in GitHub Desktop.
Save hashlash/3cd999d3aacf0f368ff141515b1ebabc to your computer and use it in GitHub Desktop.
Django Gunicorn Nginx Server Cheatsheet
deactivate() {
# ...
if [ -n "$DOTENV_FILE" ] ; then
if [ -f "$DOTENV_FILE" ] ; then
unset $(grep -v '^#' $DOTENV_FILE | sed -E 's/([^=]*)=.*/\1/' | xargs)
fi
unset DOTENV_FILE
fi
}
# ...
DOTENV_FILE="/path/to/.env"
set -a
source $DOTENV_FILE
set +a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment