Changed how port if configured to prevent breaking in deployed environment.

This commit is contained in:
neviyn 2015-10-05 16:24:30 +01:00
parent 67fa43dd8c
commit a8e4e3e334

View File

@ -189,4 +189,4 @@ def unauthorized():
if __name__ == '__main__': if __name__ == '__main__':
db.create_all() db.create_all()
app.run(threaded=True) app.run(threaded=True, port=app.config['PORT'])