Example #1
0
File: docs.py Project: 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)
Example #2
0
File: admin.py Project: 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)