aboutsummaryrefslogtreecommitdiff
path: root/wsgi.py
diff options
context:
space:
mode:
authorPjotr Prins2021-08-07 12:06:49 +0200
committerPjotr Prins2021-08-07 12:06:49 +0200
commite0476d51603432f60b6412b65486166deabe9e08 (patch)
treed201eb44bb0490dfeb3e9d87386adc866591db54 /wsgi.py
parent33700066452e3c5f341b790f015f85fb976d06be (diff)
downloadgenenetwork3-e0476d51603432f60b6412b65486166deabe9e08.tar.gz
Add gunicorn support for production
Diffstat (limited to 'wsgi.py')
-rw-r--r--wsgi.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/wsgi.py b/wsgi.py
new file mode 100644
index 0000000..d30bc49
--- /dev/null
+++ b/wsgi.py
@@ -0,0 +1,11 @@
+# import main
+
+print("STARTING WSGI APP")
+
+from gn3.app import create_app
+
+app = create_app()
+
+if __name__ == "__main__":
+ print("Starting wsgi app...")
+ app.run()