From: Matthijs Kooijman Date: Thu, 29 Apr 2010 14:58:02 +0000 (+0200) Subject: fcgi: Update startup script to 1.9. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fwipi.git;a=commitdiff_plain;h=30c5d40bdafc976501bacd067f5e3d7123270ca2 fcgi: Update startup script to 1.9. This mixes some of the stuff from the moin.fcgi and moin.cgi scripts, since the former is a bit too complicated for our needs. --- diff --git a/wipi.fcgi b/wipi.fcgi index 9795dcb..d953547 100755 --- a/wipi.fcgi +++ b/wipi.fcgi @@ -19,11 +19,10 @@ sys.path.insert(0, confdir) from MoinMoin import log log.load_config(os.path.join(confdir, 'logging.conf')) -# Debug mode - show detailed error reports -#os.environ['MOIN_DEBUG'] = '1' +from MoinMoin.web.flup_frontend import CGIFrontEnd -from MoinMoin.server.server_fastcgi import FastCgiConfig, run -class Config(FastCgiConfig): - pass - -run(Config) +options = [ + # Show errors in the output + #"--debug", "web", + ] +CGIFrontEnd().run(options)