From a5f50eb598e464ee9e8e3fa0cc1b476412648bb8 Mon Sep 17 00:00:00 2001 From: Philipp Zettl Date: Fri, 4 Sep 2020 16:50:14 +0200 Subject: [PATCH] add hot reload --- app.py | 5 ----- wsgi.py | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 wsgi.py diff --git a/app.py b/app.py index 6121124..d7df1eb 100644 --- a/app.py +++ b/app.py @@ -35,8 +35,3 @@ def index(): @app.route('/hello') def hello(): return 'Hello, World' - - -if __name__ == '__main__': - # parseObjects(root) - app.run() diff --git a/wsgi.py b/wsgi.py new file mode 100644 index 0000000..841fc63 --- /dev/null +++ b/wsgi.py @@ -0,0 +1,7 @@ +from app import app + +if __name__ == '__main__': + """ + run with gunicorn --bind 0.0.0.0:5000 wsgi:app --reload + """ + app.run()