소스 검색

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

master
Ben Kurtovic 7 년 전
부모
커밋
9d0eadc35f
2개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. +4
    -2
      README.md
  2. +0
    -3
      app.py

+ 4
- 2
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



+ 0
- 3
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)

불러오는 중...
취소
저장