From 9d0eadc35fd0f4529ec1e25cae412bb810046044 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 28 Dec 2016 14:49:29 -0500 Subject: [PATCH] Use 'flask run' instead of './app'. --- README.md | 6 ++++-- app.py | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) mode change 100755 => 100644 app.py diff --git a/README.md b/README.md index 278d978..9748164 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,10 @@ Guide ### Test - ./app.py - # go to http://localhost:8080 + export FLASK_APP=`pwd`/app.py + export FLASK_DEBUG=1 + flask run + # go to http://localhost:5000 ### Deploy diff --git a/app.py b/app.py old mode 100755 new mode 100644 index 7b3c16e..313ed7a --- a/app.py +++ b/app.py @@ -100,6 +100,3 @@ def set_style(style): def page_not_found(err): """Render and return the 404 error template.""" return render_template("404.mako"), 404 - -if __name__ == "__main__": - app.run(debug=True, port=8080)