Skip to content

Instantly share code, notes, and snippets.

@spdrman
Created June 7, 2018 23:54
Show Gist options
  • Save spdrman/cc4a2f5dd8d13a4ecb249cffd7bec4bc to your computer and use it in GitHub Desktop.
Save spdrman/cc4a2f5dd8d13a4ecb249cffd7bec4bc to your computer and use it in GitHub Desktop.
#wsgi file:
import os
import sys
project_home = u'/home/<user-name>/web2py'
if project_home not in sys.path:
sys.path = [project_home] + sys.path
sys.stdout = sys.stderr
os.chdir(project_home)
# serve web2py via WSGI handler
from gluon.main import wsgibase as application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment