Proper configuration initialization even when the app is wrapped by uwsgi
This commit is contained in:
parent
419220c6c9
commit
9577e02d7f
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
|||
import os
|
||||
|
||||
from .cli import get_args
|
||||
from .config import init_config
|
||||
|
||||
init_config()
|
||||
opts, _ = get_args()
|
||||
config_file = os.path.join(opts.dir, 'config.yaml')
|
||||
init_config(config_file=config_file, content_dir=opts.dir)
|
||||
|
||||
from .app import app
|
||||
|
||||
|
|
Loading…
Reference in a new issue