Exemple #1
0
def deploy(revision=None):
    """ update remote host environment (virtualenv, deploy, update) """
    require("project_root", provided_by=env.valid_envs)
    with settings(warn_only=True):
        apache_cmd("stop")
    if not files.exists(env.project_root):
        sudo("mkdir -p %(project_root)s" % env)

    checkout_or_update(revision)
    fablib._get_svn_user_and_pass()

    with hide("running"):
        sudo(env.tasks_bin + " checkout_or_update_fixtures:svnuser="******",svnpass="******"production":
        setup_db_dumps()

    setup_profile_updates()
    sudo(env.tasks_bin + " load_fixtures")
    link_apache_conf()
    apache_cmd("start")
Exemple #2
0
def deploy(revision=None):
    """ update remote host environment (virtualenv, deploy, update) """
    require('project_root', provided_by=env.valid_envs)
    if not files.exists(env.project_root):
        sudo('mkdir -p %(project_root)s' % env)
    create_virtualenv()
    checkout_or_update(revision)
    checkout_or_update_fixtures()
    update_requirements()
    link_local_settings()
    update_db()
    load_fixtures()
    link_apache_conf()
    apache_restart()
def deploy(revision=None):
    """ update remote host environment (virtualenv, deploy, update) """
    require('project_root', provided_by=env.valid_envs)
    with settings(warn_only=True):
        apache_cmd('stop')
    if not files.exists(env.project_root):
        sudo('mkdir -p %(project_root)s' % env)
        
    checkout_or_update(revision)
    fablib._get_svn_user_and_pass()
    
    with hide('running'):
        sudo(env.tasks_bin + ' checkout_or_update_fixtures:svnuser='******',svnpass='******'production':
        setup_db_dumps()
    sudo(env.tasks_bin + ' load_fixtures')
    link_apache_conf()
    apache_cmd('start')