blob: e1110b6fd78ac66090a8e4771a29a74100f0a93f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
An auto-reloading standalone wiki server, useful for development.
"""
import hatta
import werkzeug
if __name__=="__main__":
config = hatta.WikiConfig()
config.parse_args()
config.parse_files()
config.sanitize()
application = hatta.Wiki(config).application
host, port = config.interface or 'localhost', int(config.port)
werkzeug.run_simple(host, port, application, use_reloader=True)
|