summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/web.py7
-rw-r--r--bin/web_dev.py12
-rw-r--r--bin/web_prod.py12
-rw-r--r--bin/webapp.py7
4 files changed, 24 insertions, 14 deletions
diff --git a/bin/web.py b/bin/web.py
deleted file mode 100644
index c3975f3..0000000
--- a/bin/web.py
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/python
-# coding: utf-8
-import bottle
-from ebus import webapp
-
-if __name__ == "__main__":
- bottle.run(webapp.app, host="0.0.0.0", port=8000, reloader=True)
diff --git a/bin/web_dev.py b/bin/web_dev.py
new file mode 100644
index 0000000..7dd5d87
--- /dev/null
+++ b/bin/web_dev.py
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+# coding: utf-8
+import bottle
+from ebus import webapp
+from ebus.webapp.soup_plugin import SoupPlugin
+
+if __name__ == "__main__":
+ soup = SoupPlugin(url="postgresql://ebus:ebus@10.2.2.26:5432/ebus")
+ webapp.app.install(soup)
+ bottle.debug(True)
+
+ bottle.run(webapp.app, host="0.0.0.0", port=8000, reloader=True)
diff --git a/bin/web_prod.py b/bin/web_prod.py
new file mode 100644
index 0000000..7d01106
--- /dev/null
+++ b/bin/web_prod.py
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+# coding: utf-8
+import bottle
+from ebus import webapp
+from ebus.webapp.soup_plugin import SoupPlugin
+
+if __name__ == "__main__":
+ soup = SoupPlugin(url="postgresql:///ebus")
+ webapp.app.install(soup)
+ bottle.debug(False)
+
+ bottle.run(webapp.app, host="0.0.0.0", port=8000, reloader=False)
diff --git a/bin/webapp.py b/bin/webapp.py
deleted file mode 100644
index c3975f3..0000000
--- a/bin/webapp.py
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/python
-# coding: utf-8
-import bottle
-from ebus import webapp
-
-if __name__ == "__main__":
- bottle.run(webapp.app, host="0.0.0.0", port=8000, reloader=True)