aboutsummaryrefslogtreecommitdiff
path: root/wqflask/gunicorn
diff options
context:
space:
mode:
authorPjotr Prins2018-01-29 14:15:49 +0000
committerPjotr Prins2018-01-29 14:15:49 +0000
commitb3724d60d2e50dd19e61140406aa85dff981ac16 (patch)
tree23dc1db8f3bc192aa40c77ae492033aed5787423 /wqflask/gunicorn
parent06b203e722c0061aae6c16f877619dc7af03638e (diff)
downloadgenenetwork2-b3724d60d2e50dd19e61140406aa85dff981ac16.tar.gz
startup script: adapting for gunicorn
Diffstat (limited to 'wqflask/gunicorn')
-rw-r--r--wqflask/gunicorn/__init__.py0
-rw-r--r--wqflask/gunicorn/genenetwork2.py10
-rw-r--r--wqflask/gunicorn/wsgi.py5
3 files changed, 15 insertions, 0 deletions
diff --git a/wqflask/gunicorn/__init__.py b/wqflask/gunicorn/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/wqflask/gunicorn/__init__.py
diff --git a/wqflask/gunicorn/genenetwork2.py b/wqflask/gunicorn/genenetwork2.py
new file mode 100644
index 00000000..afbdc934
--- /dev/null
+++ b/wqflask/gunicorn/genenetwork2.py
@@ -0,0 +1,10 @@
+from flask import Flask
+application = Flask(__name__)
+
+@application.route("/")
+def hello():
+ return "<h1 style='color:blue'>Hello There!</h1>"
+
+if __name__ == "__main__":
+ application.run(host='0.0.0.0')
+
diff --git a/wqflask/gunicorn/wsgi.py b/wqflask/gunicorn/wsgi.py
new file mode 100644
index 00000000..8c14ee6b
--- /dev/null
+++ b/wqflask/gunicorn/wsgi.py
@@ -0,0 +1,5 @@
+from genenetwork2 import application
+
+if __name__ == "__main__":
+ application.run()
+