blob: c89ce651577de7e1762eaf91a2a34d24767222bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
import flup
import sys
# XXX Uncomment and edit this if hatta.py is not installed in site-packages
#sys.path.insert(0, "/path/to/dir/with/hatta/")
import hatta
config = hatta.WikiConfig(
pages_path='/path/to/pages/', # XXX Edit this!
cache_path='/path/to/cache/', # XXX Edit this!
)
config.parse_args()
config.parse_files()
config.sanitize()
wiki = hatta.Wiki(config)
app = wiki.application
# XXX Uncomment this, if you are using fastcgi on / on Lighttpd
#def app(env, start):
# env['PATH_INFO'] = env['SCRIPT_NAME'] + env['PATH_INFO']
# env['SCRIPT_NAME'] = ''
# return wiki.application(env, start)
flup.server.fcgi.WSGIServer(app).run()
|