167
by Michael Hudson
make serve-branches.py executable |
1 |
#!/usr/bin/env python
|
159.2.25
by Michael Hudson
put things closer to where they belong |
2 |
from loggerhead.apps.filesystem import BranchesFromFileSystemRoot |
3 |
from paste import httpserver |
|
4 |
from paste.httpexceptions import make_middleware |
|
5 |
from paste.translogger import make_filter |
|
6 |
||
7 |
app = BranchesFromFileSystemRoot('.') |
|
8 |
||
9 |
app = app |
|
10 |
app = make_middleware(app) |
|
11 |
app = make_filter(app, None) |
|
12 |
||
159.2.34
by Michael Hudson
doh |
13 |
#from paste.evalexception import EvalException
|
14 |
#app = EvalException(app)
|
|
159.2.25
by Michael Hudson
put things closer to where they belong |
15 |
|
159.2.36
by Michael Hudson
more compatibility |
16 |
httpserver.serve(app, host='0.0.0.0', port='9876') |