Example #1
0
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())
Example #2
0
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()
Example #4
0
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()
Example #5
0
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)
Example #6
0
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)
Example #7
0
def build_docs(app):
    from frappe.utils.autodoc import build
    frappe.connect()
    build(app)
    frappe.destroy()