コード例 #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())
コード例 #2
0
ファイル: cli.py プロジェクト: 81552433qqcom/frappe
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())
コード例 #3
0
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()
コード例 #4
0
ファイル: commands.py プロジェクト: jnix3/frappe
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()
コード例 #5
0
ファイル: cli.py プロジェクト: fogueri/frappe
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)
コード例 #6
0
ファイル: cli.py プロジェクト: 81552433qqcom/frappe
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)
コード例 #7
0
def build_docs(app):
    from frappe.utils.autodoc import build
    frappe.connect()
    build(app)
    frappe.destroy()