view wiki/server/moin_flup_wsgi.py @ 2972:70f2d676920b

add mod_wsgi driver script, rename flup/wsgi based driver script (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Jan 2008 21:19:50 +0100
parents wiki/server/moinwsgi.py@b902f2397c68
children 8d691fbdc929
line wrap: on
line source
"""
    MoinMoin - WSGI application

    @copyright: 2005 by Anakim Border <akborder@gmail.com>
    @license: GNU GPL, see COPYING for details.
"""

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

# 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
import os

if __name__ == '__main__':
    server = WSGIServer(moinmoinApp, bindAddress=unixSocketPath)
    server.run()
    os.unlink(unixSocketPath)