Ver código fonte

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

master
Ben Kurtovic 7 anos atrás
pai
commit
9d0eadc35f
2 arquivos alterados com 4 adições e 5 exclusões
  1. +4
    -2
      README.md
  2. +0
    -3
      app.py

+ 4
- 2
README.md Ver arquivo

@@ -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



+ 0
- 3
app.py Ver arquivo

@@ -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)

Carregando…
Cancelar
Salvar