2
0
mirror of https://github.com/frappe/bench.git synced 2024-06-27 11:43:29 +00:00

feat(minor): Any procman in bench start

Using the `-m` flag, we can use any process manager instead of the
standard honcho. For instance, you've installed overmind on your machine
and are married to it, just run `bench start -m overmind` :P
This commit is contained in:
Gavin D'souza 2021-11-12 18:15:51 +05:30
parent d04c7feab7
commit bae338ad0b

View File

@ -11,9 +11,10 @@ import click
@click.option('--no-prefix', is_flag=True, default=False, help="Hide process name from bench start log")
@click.option('--concurrency', '-c', type=str)
@click.option('--procfile', '-p', type=str)
def start(no_dev, concurrency, procfile, no_prefix):
from bench.utils import start
start(no_dev=no_dev, concurrency=concurrency, procfile=procfile, no_prefix=no_prefix)
@click.option('--man', '-m', help="Process Manager of your choice ;)")
def start(no_dev, concurrency, procfile, no_prefix, man):
from bench.utils.system import start
start(no_dev=no_dev, concurrency=concurrency, procfile=procfile, no_prefix=no_prefix, procman=man)
@click.command('restart', help="Restart supervisor processes or systemd units")