mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 15:38:25 +00:00
chore: drop auto update bench via cronjob
This commit is contained in:
parent
063e4a85be
commit
f1ea6fce3f
@ -14,12 +14,6 @@ def config():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@click.command('auto_update', help='Enable/Disable auto update for bench')
|
|
||||||
@click.argument('state', type=click.Choice(['on', 'off']))
|
|
||||||
def config_auto_update(state):
|
|
||||||
update_config({'auto_update': state == 'on'})
|
|
||||||
|
|
||||||
|
|
||||||
@click.command('restart_supervisor_on_update', help='Enable/Disable auto restart of supervisor processes')
|
@click.command('restart_supervisor_on_update', help='Enable/Disable auto restart of supervisor processes')
|
||||||
@click.argument('state', type=click.Choice(['on', 'off']))
|
@click.argument('state', type=click.Choice(['on', 'off']))
|
||||||
def config_restart_supervisor_on_update(state):
|
def config_restart_supervisor_on_update(state):
|
||||||
@ -90,7 +84,6 @@ def remove_common_config(keys):
|
|||||||
put_config(common_site_config)
|
put_config(common_site_config)
|
||||||
|
|
||||||
|
|
||||||
config.add_command(config_auto_update)
|
|
||||||
config.add_command(config_update_bench_on_update)
|
config.add_command(config_update_bench_on_update)
|
||||||
config.add_command(config_restart_supervisor_on_update)
|
config.add_command(config_restart_supervisor_on_update)
|
||||||
config.add_command(config_restart_systemd_on_update)
|
config.add_command(config_restart_systemd_on_update)
|
||||||
|
@ -13,11 +13,10 @@ import click
|
|||||||
@click.option('--clone-without-update', is_flag=True, help="copy repos from path without update")
|
@click.option('--clone-without-update', is_flag=True, help="copy repos from path without update")
|
||||||
@click.option('--no-procfile', is_flag=True, help="Pull changes in all the apps in bench")
|
@click.option('--no-procfile', is_flag=True, help="Pull changes in all the apps in bench")
|
||||||
@click.option('--no-backups',is_flag=True, help="Run migrations for all sites in the bench")
|
@click.option('--no-backups',is_flag=True, help="Run migrations for all sites in the bench")
|
||||||
@click.option('--no-auto-update',is_flag=True, help="Build JS and CSS artifacts for the bench")
|
|
||||||
@click.option('--skip-redis-config-generation', is_flag=True, help="Skip redis config generation if already specifying the common-site-config file")
|
@click.option('--skip-redis-config-generation', is_flag=True, help="Skip redis config generation if already specifying the common-site-config file")
|
||||||
@click.option('--skip-assets',is_flag=True, default=False, help="Do not build assets")
|
@click.option('--skip-assets',is_flag=True, default=False, help="Do not build assets")
|
||||||
@click.option('--verbose',is_flag=True, help="Verbose output during install")
|
@click.option('--verbose',is_flag=True, help="Verbose output during install")
|
||||||
def init(path, apps_path, frappe_path, frappe_branch, no_procfile, no_backups, no_auto_update, clone_from, verbose, skip_redis_config_generation, clone_without_update, ignore_exist=False, skip_assets=False, python='python3'):
|
def init(path, apps_path, frappe_path, frappe_branch, no_procfile, no_backups, clone_from, verbose, skip_redis_config_generation, clone_without_update, ignore_exist=False, skip_assets=False, python='python3'):
|
||||||
from bench.utils import init, log
|
from bench.utils import init, log
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -26,7 +25,6 @@ def init(path, apps_path, frappe_path, frappe_branch, no_procfile, no_backups, n
|
|||||||
apps_path=apps_path,
|
apps_path=apps_path,
|
||||||
no_procfile=no_procfile,
|
no_procfile=no_procfile,
|
||||||
no_backups=no_backups,
|
no_backups=no_backups,
|
||||||
no_auto_update=no_auto_update,
|
|
||||||
frappe_path=frappe_path,
|
frappe_path=frappe_path,
|
||||||
frappe_branch=frappe_branch,
|
frappe_branch=frappe_branch,
|
||||||
verbose=verbose,
|
verbose=verbose,
|
||||||
|
@ -75,12 +75,6 @@ def setup_production(user, yes=False):
|
|||||||
setup_production(user=user, yes=yes)
|
setup_production(user=user, yes=yes)
|
||||||
|
|
||||||
|
|
||||||
@click.command("auto-update", help="Add cronjob for bench auto update")
|
|
||||||
def setup_auto_update():
|
|
||||||
from bench.utils import setup_auto_update
|
|
||||||
setup_auto_update()
|
|
||||||
|
|
||||||
|
|
||||||
@click.command("backups", help="Add cronjob for bench backups")
|
@click.command("backups", help="Add cronjob for bench backups")
|
||||||
def setup_backups():
|
def setup_backups():
|
||||||
from bench.utils import setup_backups
|
from bench.utils import setup_backups
|
||||||
@ -309,7 +303,6 @@ setup.add_command(setup_redis)
|
|||||||
setup.add_command(setup_letsencrypt)
|
setup.add_command(setup_letsencrypt)
|
||||||
setup.add_command(setup_wildcard_ssl)
|
setup.add_command(setup_wildcard_ssl)
|
||||||
setup.add_command(setup_production)
|
setup.add_command(setup_production)
|
||||||
setup.add_command(setup_auto_update)
|
|
||||||
setup.add_command(setup_backups)
|
setup.add_command(setup_backups)
|
||||||
setup.add_command(setup_env)
|
setup.add_command(setup_env)
|
||||||
setup.add_command(setup_procfile)
|
setup.add_command(setup_procfile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user