2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

[command] bench restart --web

This commit is contained in:
Rushabh Mehta 2016-09-30 16:39:58 +05:30
parent f0b67b2ff8
commit 9fd73a738e

View File

@ -12,11 +12,11 @@ def start(no_dev, concurrency):
@click.command('restart')
@click.option('--web-workers', is_flag=True, default=False)
def restart(web_workers):
@click.option('--web', is_flag=True, default=False)
def restart(web):
"Restart supervisor processes"
from bench.utils import restart_supervisor_processes
restart_supervisor_processes(bench_path='.', web_workers=web_workers)
restart_supervisor_processes(bench_path='.', web_workers=web)
@click.command('set-nginx-port')