another attempt at setting host

This commit is contained in:
Sakimori 2021-01-01 15:28:12 -05:00
parent b8f6e3b352
commit 971444fb4b

View File

@ -4,14 +4,14 @@ from flask_socketio import SocketIO, emit
app = Flask("the-prestige") app = Flask("the-prestige")
app.config['SECRET KEY'] = 'dev' app.config['SECRET KEY'] = 'dev'
app.config['SERVER_NAME'] = '0.0.0.0:5000' #app.config['SERVER_NAME'] = '0.0.0.0:5000'
socketio = SocketIO(app) socketio = SocketIO(app)
@app.route('/') @app.route('/')
def index(): def index():
return render_template("index.html") return render_template("index.html")
thread2 = threading.Thread(target=socketio.run,args=(app,)) thread2 = threading.Thread(target=socketio.run,args=(app,'0.0.0.0'))
thread2.start() thread2.start()
master_games_dic = {} #key timestamp : (game game, {} state) master_games_dic = {} #key timestamp : (game game, {} state)