view wiki/server/ @ 3505:cd43bbf56c33

logging: removed logging to ./moin.log from fallback config, better docs
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 14 Apr 2008 18:47:57 +0200
parents b6edaabd06b7
children fc2f05f2b0bd
line wrap: on
line source
    MoinMoin - Moin as WSGI application with flup as fcgi gateway

    @copyright: 2005 by Anakim Border <>,
                2008 by MoinMoin:ThomasWaldmann
    @license: GNU GPL, see COPYING for details.

use_threads = True
unixSocketPath = '/tmp/moin.sock'

import os

from MoinMoin import log
log.load_config('wiki/config/logging/logfile') # XXX please fix this path!

# Set threads flag, so other code can use proper locking
from MoinMoin import config
config.use_threads = use_threads
del config

from flup.server.fcgi import WSGIServer
from MoinMoin.server.server_wsgi import moinmoinApp, WsgiConfig

class Config(WsgiConfig):

config = Config()

if __name__ == '__main__':
    server = WSGIServer(moinmoinApp, bindAddress=unixSocketPath)