Commit 3aee1215b8e77275da4c1f35ba5598a43d71abdd
1 parent
7bc7b9ae
Exists in
master
Add WSGI main entry point.
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,10 @@ | @@ -0,0 +1,10 @@ | ||
1 | +import logging | ||
2 | +import sys | ||
3 | +import os | ||
4 | +PROJECT_ROOT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) | ||
5 | +#sys.path.append(PROJECT_ROOT_DIR) | ||
6 | +sys.path.insert(0, PROJECT_ROOT_DIR) | ||
7 | +logging.basicConfig(stream=sys.stderr) | ||
8 | +from main import app as application | ||
9 | + | ||
10 | + |