From b3724d60d2e50dd19e61140406aa85dff981ac16 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Mon, 29 Jan 2018 14:15:49 +0000 Subject: startup script: adapting for gunicorn --- wqflask/__init__.py | 1 - wqflask/gunicorn/__init__.py | 0 wqflask/gunicorn/genenetwork2.py | 10 ++++++++++ wqflask/gunicorn/wsgi.py | 5 +++++ wqflask/runserver.py | 2 ++ 5 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 wqflask/gunicorn/__init__.py create mode 100644 wqflask/gunicorn/genenetwork2.py create mode 100644 wqflask/gunicorn/wsgi.py (limited to 'wqflask') diff --git a/wqflask/__init__.py b/wqflask/__init__.py index 315b709e..e69de29b 100644 --- a/wqflask/__init__.py +++ b/wqflask/__init__.py @@ -1 +0,0 @@ -from wqflask import app diff --git a/wqflask/gunicorn/__init__.py b/wqflask/gunicorn/__init__.py new file mode 100644 index 00000000..e69de29b 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 "