Read app port from config.py

This commit is contained in:
Khanh Ngo
2015-12-14 16:38:47 +07:00
parent b0e3e6a911
commit e1e1b1d9bd
3 changed files with 4 additions and 2 deletions

3
run.py
View File

@@ -1,5 +1,6 @@
#!flask/bin/python
from app import app
from config import PORT
if __name__ == '__main__':
app.run(debug = True, port=9191)
app.run(debug = True, port=PORT)