view wk.py @ 243:c6ec6096bd95

Simpler out-of-the-box support for background updates. Now by default Celery uses an SQLite broker, with storage in the `.wiki` directory. This makes it possible to support async updates by simply passing `--usetasks` to `wk runserver`, while also running `wk runtasks` in a different process.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 29 Mar 2014 22:28:07 -0700
parents 2dd7535045eb
children
line wrap: on
line source

#!/usr/local/bin/python
import sys
import logging
import colorama
from wikked.witch import ColoredFormatter, main


# Configure logging.
colorama.init()
root_logger = logging.getLogger()
handler = logging.StreamHandler(stream=sys.stdout)
handler.setFormatter(ColoredFormatter('%(message)s'))
root_logger.addHandler(handler)


if __name__ == "__main__":
    main()