Main reference: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-debian-10
Last active
July 7, 2020 08:48
-
-
Save hashlash/3cd999d3aacf0f368ff141515b1ebabc to your computer and use it in GitHub Desktop.
Django Gunicorn Nginx Server Cheatsheet
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
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