Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dev.py
blob: 8d3dcad4fed97bb26686d488f70e26950bf35982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /usr/bin/env 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()
    application = hatta.Wiki(config).application
    host = config.get('interface', '0.0.0.0')
    port = int(config.get('port', 8080))
    werkzeug.run_simple(host, port, application, use_reloader=True)