Пример #1
0
Файл: admin.py Проект: 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)
Пример #2
0
Файл: docs.py Проект: 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)