diff --git a/flaskr/wsgi.py b/flaskr/wsgi.py new file mode 100644 index 0000000..34e3b28 --- /dev/null +++ b/flaskr/wsgi.py @@ -0,0 +1,15 @@ +import os +import sys + +PROJECT_ROOT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + +sys.path.append(PROJECT_ROOT_DIR) + +# Only now can we import locals +# --> Not really true anymore since this file is in flaskr now. +from flaskr import create_app + +app = create_app('flaskr.settings.ProductionConfig') + +if __name__ == "__main__": + app.run(host='0.0.0.0', port=80) diff --git a/uwsgi.ini b/uwsgi.ini new file mode 100644 index 0000000..2fd1d88 --- /dev/null +++ b/uwsgi.ini @@ -0,0 +1,3 @@ +[uwsgi] +module = flaskr.wsgi +callable = app \ No newline at end of file diff --git a/web/wsgi.py b/web/wsgi.py deleted file mode 100644 index 3bafbfd..0000000 --- a/web/wsgi.py +++ /dev/null @@ -1,14 +0,0 @@ -import os -import sys - -PROJECT_ROOT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) - -sys.path.append(PROJECT_ROOT_DIR) - -# Only now can we import locals -from flaskr import create_app - -app = create_app('flaskr.settings.ProductionConfig') - -if __name__ == "__main__": - app.run(host='0.0.0.0') -- libgit2 0.21.2