Skip to content

Instantly share code, notes, and snippets.

@whittlem
Created August 19, 2021 22:50
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 whittlem/f5bd7411db381f229e4fb4425deca503 to your computer and use it in GitHub Desktop.
Save whittlem/f5bd7411db381f229e4fb4425deca503 to your computer and use it in GitHub Desktop.
python-flask-wsgi.py
import sys
import site
import logging
logging.basicConfig(stream=sys.stderr)
site.addsitedir('/var/www/html/lib/python3.6/site-packages')
site.addsitedir('/var/www/html/lib64/python3.6/site-packages')
sys.path.insert(0,"/var/www/html/")
from app import app as application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment