mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
[Fix] Added option to force upgrade nginx config file
This commit is contained in:
parent
dc49355ecd
commit
c50d788eea
@ -15,10 +15,11 @@ def setup_sudoers(user):
|
|||||||
|
|
||||||
|
|
||||||
@click.command('nginx')
|
@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"
|
"generate config for nginx"
|
||||||
from bench.config.nginx import make_nginx_conf
|
from bench.config.nginx import make_nginx_conf
|
||||||
make_nginx_conf(bench_path=".")
|
make_nginx_conf(bench_path=".", force=force)
|
||||||
|
|
||||||
|
|
||||||
@click.command('supervisor')
|
@click.command('supervisor')
|
||||||
|
Loading…
Reference in New Issue
Block a user