From a85541d9f7622813ec98bf042164414edc1fb366 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 25 Jun 2011 17:14:05 +0200 Subject: web -> bottle --- bin/ebus_web.py | 10 ---------- bin/web.py | 7 +++++++ 2 files changed, 7 insertions(+), 10 deletions(-) delete mode 100755 bin/ebus_web.py create mode 100644 bin/web.py (limited to 'bin') 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) -- cgit v1.2.1