Beispiel #1
0
def push():
    with cd(env.deploy_folder):
        fab_django.deploy()
        fab_django.syncdb()
        fab_django.clean_pyc()
        fab_django.restart_app(env.app_name)

        fab_django.load_data_mio(env.fixtures_name)

    if env.nginx_serves_static:
        fab_nginx.restart()

    deploy_info()
Beispiel #2
0
def push():
    with cd(env.deploy_folder):
        fab_django.deploy()
        fab_django.syncdb()
        fab_django.clean_pyc()
        fab_django.restart_app(env.app_name)

        fab_django.load_data_mio(env.fixtures_name)

    if env.nginx_serves_static:
        fab_nginx.restart()

    deploy_info()
Beispiel #3
0
def deploy():
    with cd(env.deploy_folder):
        fab_django.deploy()
    fab_django.copy_conf_files(env.local_conf_folder, \
        env.deploy_folder, env.is_mobile)
    with cd(env.deploy_folder):
        fab_django.syncdb()
    update_conf()
    fab_django.restart()
    if env.nginx_serves_static:
        fab_nginx.restart()
    else:
        fab_apache.restart()
    deploy_info()
Beispiel #4
0
def deploy():
    with cd(env.deploy_folder):
        fab_django.deploy()
    fab_django.copy_conf_files(env.local_conf_folder, \
        env.deploy_folder, env.is_mobile)
    with cd(env.deploy_folder):
        fab_django.syncdb()
    update_conf()
    fab_django.restart()
    # in theory apache restart is not needed...
    fab_apache.restart()
    if env.nginx_serves_static:
        fab_nginx.restart()
    deploy_info()
Beispiel #5
0
def quick_deploy():
    """
        this target run a quick deploy, only update source from repository
        and restart app.wsgi this target do NOT run migrations, upload
        configurations files or restart apache
    """
    with cd(env.deploy_folder):
        fab_django.deploy()
    fab_django.restart()
    # please, read deploy function comments to know what this cmd does
    with cd(env.deploy_folder):
        fab_django.load_fixture('youtube_regexp')
    deploy_info()
    if env.nginx_serves_static:
        fab_nginx.restart()
    else:
        fab_apache.restart()
Beispiel #6
0
def quick_deploy():
    """
        this target run a quick deploy, only update source from repository
        and restart app.wsgi this target do NOT run migrations, upload
        configurations files or restart apache
    """
    with cd(env.deploy_folder):
        fab_django.deploy()
    fab_django.restart()
    # please, read deploy function comments to know what this cmd does
    with cd(env.deploy_folder):
        fab_django.load_fixture('youtube_regexp')
    deploy_info()
    if env.nginx_serves_static:
        fab_nginx.restart()
    else:
        fab_apache.restart()
Beispiel #7
0
def install_app():
    """ install django app """
    run("mkdir -p %s" % env.deploy_folder)
    fab_django.prepare_env(env.local_conf_folder, env.deploy_folder)
    update_conf()
    fab_django.copy_conf_files(env.local_conf_folder, \
        env.deploy_folder, env.is_mobile)
    with cd(env.deploy_folder):
        fab_django.clean_pyc()
        fab_django.syncdb()
        fab_django.create_admin()
        fab_django.load_data(env.fixtures_name)
    
    fab_django.restart_app(env.app_name)
    if env.nginx_serves_static:
        fab_nginx.restart()
    else:
        fab_apache.restart()
Beispiel #8
0
def install_app():
    """ install django app """
    sudo("mkdir -p %s" % env.deploy_folder)
    sudo("chown -R %s %s" % (env.user, env.deploy_folder))
    fab_django.prepare_env(env.local_conf_folder, env.deploy_folder)
    update_conf()
    fab_django.copy_conf_files(env.local_conf_folder, \
        env.deploy_folder, env.is_mobile)
    with cd(env.deploy_folder):
        fab_django.clean_pyc()
        fab_django.syncdb()
        fab_django.create_admin()
        fab_django.load_data(env.fixtures_name)
    fab_supervisor.reload()
    fab_django.restart_app(env.app_name)
    if env.nginx_serves_static:
        fab_nginx.restart()
    else:
        fab_apache.restart()