2013-09-26 16:51:15 +03:00
|
|
|
from gevent import monkey, pywsgi
|
|
|
|
monkey.patch_all()
|
|
|
|
import logging
|
2013-10-04 04:19:33 +03:00
|
|
|
from realms import app, config
|
2013-09-26 16:51:15 +03:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
app.logger.setLevel(logging.INFO)
|
2013-10-04 04:19:33 +03:00
|
|
|
pywsgi.WSGIServer(('', config.port), app).serve_forever()
|