Skip to content
Snippets Groups Projects
run.py 278 B
Newer Older
nick's avatar
nick committed
# run.py

import os

from app import create_app
Mitchell Moore's avatar
Mitchell Moore committed
from flask_socketio import SocketIO
nick's avatar
nick committed

config_name = os.getenv('FLASK_CONFIG')
app = create_app(config_name)
app.secret_key = 'randomString'
Mitchell Moore's avatar
Mitchell Moore committed
socketio = SocketIO(app)
nick's avatar
nick committed


if __name__ == '__main__':
Mitchell Moore's avatar
Mitchell Moore committed
   # app.run()
    socketio.run(app)