From c50d788eea3bb71c947b0c8ac7dcf8403daff42d Mon Sep 17 00:00:00 2001 From: shreyas Date: Tue, 24 May 2016 11:03:32 +0530 Subject: [PATCH] [Fix] Added option to force upgrade nginx config file --- bench/commands/setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bench/commands/setup.py b/bench/commands/setup.py index c62876a7..44380e86 100644 --- a/bench/commands/setup.py +++ b/bench/commands/setup.py @@ -15,10 +15,11 @@ def setup_sudoers(user): @click.command('nginx') -def setup_nginx(): +@click.option('--force', help='Force regeneration of nginx config file', default=False, is_flag=True) +def setup_nginx(force=None): "generate config for nginx" from bench.config.nginx import make_nginx_conf - make_nginx_conf(bench_path=".") + make_nginx_conf(bench_path=".", force=force) @click.command('supervisor')