~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Michael Hudson
  • Date: 2009-02-20 03:30:31 UTC
  • mto: This revision was merged to the branch mainline in revision 276.
  • Revision ID: michael.hudson@canonical.com-20090220033031-ryn0e4nkca2ta3w6
more careful...

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from optparse import OptionParser
23
23
 
 
24
from bzrlib.plugin import load_plugins
 
25
 
24
26
from paste import httpserver
25
27
from paste.httpexceptions import HTTPExceptionHandler, HTTPInternalServerError
26
28
from paste.translogger import TransLogger
144
146
    else:
145
147
        app = PrefixMiddleware(app, prefix=prefix)
146
148
 
 
149
    app = HTTPExceptionHandler(app)
147
150
    app = ErrorHandlerApp(app)
148
 
    app = HTTPExceptionHandler(app)
149
151
 
150
152
    if not options.user_port:
151
153
        port = '8080'
157
159
    else:
158
160
        host = options.user_host
159
161
 
 
162
    load_plugins()
 
163
 
160
164
    httpserver.serve(app, host=host, port=port)
161
165
 
162
166