diff options
author | yvesf <yvesf-git@xapek.org> | 2011-06-25 17:14:05 +0200 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2011-06-25 17:14:05 +0200 |
commit | a85541d9f7622813ec98bf042164414edc1fb366 (patch) | |
tree | 8041b06bb1681642777244d1955356bd63af25b7 /bin | |
parent | c15f4a600ddc3155b761230b84d78458e08bdc40 (diff) | |
download | ebus-alt-a85541d9f7622813ec98bf042164414edc1fb366.tar.gz ebus-alt-a85541d9f7622813ec98bf042164414edc1fb366.zip |
web -> bottle
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebus_web.py | 10 | ||||
-rw-r--r-- | bin/web.py | 7 |
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) |