12 lines
226 B
Python
Raw Normal View History

#!/usr/bin/env python
2015-12-13 16:34:12 +07:00
from app import app
2015-12-14 16:38:47 +07:00
from config import PORT
2015-12-13 16:34:12 +07:00
2016-04-13 11:13:59 +07:00
try:
from config import BIND_ADDRESS
except:
BIND_ADDRESS = '127.0.0.1'
2015-12-13 16:34:12 +07:00
if __name__ == '__main__':
2016-04-13 11:13:59 +07:00
app.run(debug = True, host=BIND_ADDRESS, port=PORT)