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

Add dontation pitch in bench update, fix #24

This commit is contained in:
Pratik Vyas 2014-07-17 12:14:08 +05:30
parent 19f20a5f7a
commit 7ff05eb387

View File

@ -69,6 +69,7 @@ def new_site(site):
@click.option('--auto',flag_value=True, type=bool)
def update(pull=False, patch=False, build=False, bench=False, auto=False, restart_supervisor=False):
"Update bench"
if not (pull or patch or build or bench):
pull, patch, build, bench = True, True, True, True
@ -83,8 +84,12 @@ def update(pull=False, patch=False, build=False, bench=False, auto=False, restar
patch_sites()
if build:
build_assets()
if restart_supervisor or conf.get('restart_supervisor_on_update'):
restart_supervisor_processes()
# if restart_supervisor or conf.get('restart_supervisor_on_update'):
# restart_supervisor_processes()
print "_"*80
print "https://frappe.io/buy - Donate to help make better free and open source tools"
print
@click.command('restart')
def restart():