def update_all_sites(remote=None, branch=None, verbose=True): pull(remote, branch) # maybe there are new framework changes, any consequences? reload(webnotes) build() for site in get_sites(): latest(site=site, verbose=verbose)
def update(remote=None, branch=None, reload_gunicorn=False): pull(remote=remote, branch=branch) # maybe there are new framework changes, any consequences? reload(webnotes) build() latest() if reload_gunicorn: import subprocess subprocess.check_output("killall -HUP gunicorn".split())
def update(remote=None, branch=None, site=None, reload_gunicorn=False): pull(remote=remote, branch=branch, site=site) # maybe there are new framework changes, any consequences? reload(webnotes) if not site: build() latest(site=site) if reload_gunicorn: import subprocess subprocess.check_output("killall -HUP gunicorn".split())
def update_all_sites(remote=None, branch=None, verbose=True): pull(remote, branch) build() for site in get_sites(): latest(site=site, verbose=verbose)