summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebus_web.py10
-rw-r--r--bin/web.py7
2 files changed, 7 insertions, 10 deletions
diff --git a/bin/ebus_web.py b/bin/ebus_web.py
deleted file mode 100755
index 74fe9b9..0000000
--- a/bin/ebus_web.py
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env python
-import sys
-from ebus.web import controller
-
-from sqlalchemy import create_engine
-
-#db_engine = create_engine('sqlite:///:memory:', echo=True)
-db_engine = create_engine("postgresql://yvesf:iii@10.2.2.13:5432/yvesf", echo=True)
-
-sys.exit(controller.run(db_engine))
diff --git a/bin/web.py b/bin/web.py
new file mode 100644
index 0000000..c0e2f5d
--- /dev/null
+++ b/bin/web.py
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+# coding: utf-8
+import bottle
+from ebus import web
+
+if __name__ == "__main__":
+ bottle.run(web.app, host="0.0.0.0", port=8000, reloader=True)