run.py 225 Bytes
Newer Older
david's avatar
david committed
1
from gevent import monkey
david's avatar
david committed
2

david's avatar
david committed
3
monkey.patch_all()
david's avatar
david committed
4

david's avatar
david committed
5
from os import environ
david's avatar
david committed
6
from openagua import socketio, app
david's avatar
david committed
7

david's avatar
david committed
8 9 10
host = environ.get('OA_HOST', '127.0.0.1')
port = environ.get('OA_PORT', 5000)
socketio.run(app, host=host, port=port)