Esempio n. 1
0
def deploy():
    fablib.deploy()
    cache_dir = os.path.join(env.vcs_root, 'wordpress', 'wp-content',
        'plugins', 'wp-minify', 'cache')
    sudo('mkdir -p ' + cache_dir)
    sudo('chmod a+w ' + cache_dir)
    upload_dir = os.path.join(env.vcs_root, 'wordpress', 'wp-content',
        'uploads')
    sudo('mkdir -p ' + upload_dir)
    sudo('chown -R apache ' + upload_dir)
Esempio n. 2
0
def deploy():
    fablib.deploy()
    require('tasks_bin', provided_by=env.valid_envs)
    sudo_or_run(env.tasks_bin + ' post_deploy')
Esempio n. 3
0
def deploy():
    fablib.deploy()
    require('tasks_bin', provided_by=env.valid_envs)
    sudo_or_run(env.tasks_bin + ' post_deploy')