view wiki/server/moinwsgi.py @ 643:8ed1a953d12e

fix the server adaptor scripts to hopefully match the new request module
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 12 May 2006 23:14:20 +0200
parents 77665d8e2254
children a434ee49b5a6
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.wsgi import moinmoinApp
import os

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