summaryrefslogtreecommitdiff
path: root/ebus-datastore/ebus_web.py
diff options
context:
space:
mode:
authorEbus-at-dockstar <ebus@dockstar>2013-03-25 10:22:13 +0100
committerEbus-at-dockstar <ebus@dockstar>2013-03-25 10:22:13 +0100
commit9522cdffa94f278eb5e1894600535986e22c2890 (patch)
tree85c739761f79e949027f8afdcee0f73105bb6a38 /ebus-datastore/ebus_web.py
parent0a334345e9530dd217cf74a414afe43322181fe0 (diff)
downloadebus-alt-9522cdffa94f278eb5e1894600535986e22c2890.tar.gz
ebus-alt-9522cdffa94f278eb5e1894600535986e22c2890.zip
ebus datastore
Diffstat (limited to 'ebus-datastore/ebus_web.py')
-rwxr-xr-xebus-datastore/ebus_web.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/ebus-datastore/ebus_web.py b/ebus-datastore/ebus_web.py
new file mode 100755
index 0000000..6dd71ab
--- /dev/null
+++ b/ebus-datastore/ebus_web.py
@@ -0,0 +1,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")