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.
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)