Initial socketio initialization

This commit is contained in:
Jeremy Zhang
2017-08-19 03:52:32 +00:00
parent fb8cfe3abc
commit e5cdde73b0
5 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
from run import app, init_debug
from run import app, socketio, init_debug
import os
if __name__ == "__main__":
init_debug()
app.run(host=os.getenv('IP', '0.0.0.0'), port=int(os.getenv('PORT', 8080)), debug=True, processes=3)
socketio.run(app, host=os.getenv('IP', '0.0.0.0'), port=int(os.getenv('PORT', 8080)), debug=True)