summaryrefslogtreecommitdiff
path: root/heap/ebus-web-python/ebus_web.py
blob: 6dd71ab7434440ead6dcbcd06ae6293423ced0a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
# coding: utf-8
import bottle
from ebus import web
import atexit

def close_datastore():
	web.datastore.close()

if __name__ == "__main__":
    bottle.debug(True)

    atexit.register(close_datastore)

    #bottle.run(web.app, host="0.0.0.0", port=8000, reloader=True)
    bottle.run(web.app, host="0.0.0.0", port=8000, reloader=False, server="waitress")