Created
October 7, 2010 23:30
-
-
Save mostlyobvious/616105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import fapws._evwsgi as evwsgi | |
from fapws import base | |
import sys | |
sys.path.insert(0, '/var/lib/moin/wiki') | |
def start(): | |
evwsgi.start('10.0.0.3', '8000') | |
evwsgi.set_base_module(base) | |
from MoinMoin import log | |
log.load_config('/var/lib/moin/logfile') | |
from MoinMoin.web.serving import make_application | |
app = make_application(shared=False) | |
evwsgi.wsgi_cb(('/wiki', app)) | |
evwsgi.set_debug(0) | |
evwsgi.run() | |
if __name__ == '__main__': | |
start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment