Ejemplo n.º 1
0
Archivo: docs.py Proyecto: rinfo/rdl
def deploy():
    setup()
    build_path = slashed(env.docbuild)
    if sys.platform == 'win32':
        build_path = cygpath(build_path)
    rsync_project(env.docs_webroot, build_path, exclude=".*", delete=True)
    sudo("chmod -R 755 %(docs_webroot)s" % env)
Ejemplo n.º 2
0
Archivo: admin.py Proyecto: rinfo/rdl
def deploy():
    """Deploy the admin feed to target env."""
    setup()
    builddir = get_build_dir()
    if sys.platform == 'win32':
        # Support cygwin rsync on windows:
        build_path = cygpath(slashed(builddir))
    else:
        build_path = slashed(builddir)
    rsync_project(env.admin_webroot, build_path, exclude=".*", delete=True)
    sudo("chmod -R 755 %(admin_webroot)s" % env)