aboutsummaryrefslogtreecommitdiff
path: root/main.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 /main.py
parent33700066452e3c5f341b790f015f85fb976d06be (diff)
downloadgenenetwork3-e0476d51603432f60b6412b65486166deabe9e08.tar.gz
Add gunicorn support for production
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.py b/main.py
index e3ca41a..a587697 100644
--- a/main.py
+++ b/main.py
@@ -2,6 +2,8 @@
from gn3.app import create_app
-
app = create_app()
-app.run(host="0.0.0.0")
+
+if __name__ == '__main__':
+ print("Starting app...")
+ app.run()