Created
June 7, 2018 23:54
-
-
Save spdrman/cc4a2f5dd8d13a4ecb249cffd7bec4bc to your computer and use it in GitHub Desktop.
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
#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