comparison MoinMoin/wsgiapp.py @ 4251:3c6e893424f6

Fixed: log format and line-doubling in standalone server
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sun, 27 Jul 2008 17:40:11 +0200
parents 43da090ab838
children c9483e402491
comparison
equal deleted inserted replaced
4250:43da090ab838 4251:3c6e893424f6
279 return self.app(environ, start_response) 279 return self.app(environ, start_response)
280 280
281 def run_server(config): 281 def run_server(config):
282 from os import path 282 from os import path
283 from MoinMoin.config import url_prefix_static 283 from MoinMoin.config import url_prefix_static
284 from MoinMoin.web.serving import RequestHandler
284 from werkzeug.serving import run_simple 285 from werkzeug.serving import run_simple
285 from werkzeug.utils import SharedDataMiddleware 286 from werkzeug.utils import SharedDataMiddleware
286 287
287 shared = {url_prefix_static: config.docs, 288 shared = {url_prefix_static: config.docs,
288 '/favicon.ico': path.join(config.docs, 'favicon.ico'), 289 '/favicon.ico': path.join(config.docs, 'favicon.ico'),
291 app = SharedDataMiddleware(application, shared) 292 app = SharedDataMiddleware(application, shared)
292 293
293 params = {} 294 params = {}
294 params['use_debugger'] = config.debug 295 params['use_debugger'] = config.debug
295 params['threaded'] = True 296 params['threaded'] = True
297 params['request_handler'] = RequestHandler
296 298
297 run_simple(config.interface, config.port, app, **params) 299 run_simple(config.interface, config.port, app, **params)