run.py 278 Bytes
Newer Older
1
2
3
4
5
# run.py

import os

from app import create_app
6
from flask_socketio import SocketIO
7
8
9

config_name = os.getenv('FLASK_CONFIG')
app = create_app(config_name)
10
app.secret_key = 'randomString'
11
socketio = SocketIO(app)
12
13
14


if __name__ == '__main__':
15
16
   # app.run()
    socketio.run(app)