示例#1
0
文件: tasks.py 项目: alazaro/wtdeploy
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()
示例#2
0
文件: tasks.py 项目: alazaro/wtdeploy
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()
示例#3
0
文件: tasks.py 项目: pmoliva/wtdeploy
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()
示例#4
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()
    fab_apache.restart()
示例#5
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()