Commit 23ab51193332aed7ecaadf7286c893ae83609c41
1 parent
00580901
Exists in
master
Add the WSGI script configuration.
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,13 @@ |
1 | +import os | |
2 | +import sys | |
3 | + | |
4 | +ROOT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) | |
5 | + | |
6 | +sys.path.append(ROOT_DIR) | |
7 | + | |
8 | +from flaskr import create_app | |
9 | + | |
10 | +app = create_app('flaskr.settings.ProductionConfig') | |
11 | + | |
12 | +if __name__ == "__main__": | |
13 | + app.run(host='0.0.0.0') | ... | ... |