realms-wiki/app.py

10 lines
298 B
Python
Raw Normal View History

2013-09-26 16:51:15 +03:00
from gevent import monkey, pywsgi
monkey.patch_all()
2013-10-05 00:42:45 +03:00
from realms import config, init_db, make_app, SubdomainDispatcher
2013-10-04 05:57:19 +03:00
2013-09-26 16:51:15 +03:00
if __name__ == '__main__':
2013-10-05 00:42:45 +03:00
init_db(config.db['dbname'])
2013-10-04 05:57:19 +03:00
app = SubdomainDispatcher(config.domain, make_app)
pywsgi.WSGIServer(('', config.port), app).serve_forever()