Browse Source

Use 'flask run' instead of './app'.

master
Ben Kurtovic 7 years ago
parent
commit
9d0eadc35f
2 changed files with 4 additions and 5 deletions
  1. +4
    -2
      README.md
  2. +0
    -3
      app.py

+ 4
- 2
README.md View File

@@ -27,8 +27,10 @@ Guide


### Test ### 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 ### Deploy




+ 0
- 3
app.py View File

@@ -100,6 +100,3 @@ def set_style(style):
def page_not_found(err): def page_not_found(err):
"""Render and return the 404 error template.""" """Render and return the 404 error template."""
return render_template("404.mako"), 404 return render_template("404.mako"), 404

if __name__ == "__main__":
app.run(debug=True, port=8080)

Loading…
Cancel
Save