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)