2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 23:48:24 +00:00

Merge pull request #229 from shreyasp/add-force-options

[Fix] Added force option to supervisor config setup
This commit is contained in:
Anand Doshi 2016-05-26 12:00:35 +05:30
commit 5a8ee1513c

View File

@ -23,10 +23,11 @@ def setup_nginx(force=None):
@click.command('supervisor')
def setup_supervisor():
@click.option('--force', help='Force regeneration of supervisor config', is_flag=True, default=False)
def setup_supervisor(force=None):
"generate config for supervisor"
from bench.config.supervisor import generate_supervisor_config
generate_supervisor_config(bench_path=".")
generate_supervisor_config(bench_path=".", force=force)
@click.command('redis')