madblog/madblog/uwsgi.py

17 lines
300 B
Python
Raw Normal View History

import os
from .cli import get_args
2022-01-11 20:16:27 +01:00
from .config import init_config
opts, _ = get_args()
config_file = os.path.join(opts.dir, 'config.yaml')
init_config(config_file=config_file, content_dir=opts.dir)
2022-01-11 20:16:27 +01:00
from .app import app
# For gunicorn/uWSGI compatibility
application = app
# vim:sw=4:ts=4:et: