diff --git a/relay/manage.py b/relay/manage.py index 247e979..5946f03 100644 --- a/relay/manage.py +++ b/relay/manage.py @@ -31,6 +31,9 @@ def cli(ctx, config): global app app = Application(config) + if ctx.invoked_subcommand != 'convert': + app.setup() + if not ctx.invoked_subcommand: if app.config.host.endswith('example.com'): cli_setup.callback() @@ -38,9 +41,6 @@ def cli(ctx, config): else: cli_run.callback() - if ctx.invoked_subcommand != 'convert': - app.setup() - @cli.command('convert') @click.option('--old-config', '-o', help='path to the old relay config')