Example #1
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()
    deploy_info()
Example #2
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 configurationes 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()
    fab_apache.restart()
Example #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()