def update(remote=None, branch=None, reload_gunicorn=False): pull(remote=remote, branch=branch) # maybe there are new framework changes, any consequences? reload(frappe) build() latest() if reload_gunicorn: subprocess.check_output("killall -HUP gunicorn".split())
def build_docs(context): "Build docs from /src to /www folder in app" from frappe.utils.autodoc import build frappe.destroy() for site in context.sites: try: frappe.init(site=site) build(app) finally: frappe.destroy()
def build_docs(context, app): "Build docs from /src to /www folder in app" from frappe.utils.autodoc import build frappe.destroy() for site in context.sites: try: frappe.init(site=site) build(app) finally: frappe.destroy()
def update_all_sites(remote=None, branch=None, verbose=True): pull(remote, branch) # maybe there are new framework changes, any consequences? reload(frappe) build() for site in get_sites(): frappe.init(site) latest(verbose=verbose)
def update_all_sites(remote=None, branch=None, quiet=False): verbose = not quiet pull(remote, branch) # maybe there are new framework changes, any consequences? reload(frappe) build() for site in get_sites(): frappe.init(site) latest(verbose=verbose)
def build_docs(app): from frappe.utils.autodoc import build frappe.connect() build(app) frappe.destroy()