Beispiel #1
0
def stage():
    from fabrik.recipes import django_uwsgi
    django_uwsgi.register()

    env.run = run
    env.cd = cd

    env.stage = "stage"
    env.branch = "develop"

    # Standard config
    env.hosts = [get_stage_var("HOST")]
    env.user = get_stage_var("USER")
    env.password = get_stage_var("PASSWORD")
    env.app_path = get_stage_var("APP_PATH")
    env.source_path = get_stage_var("APP_SOURCE_PATH", "src")

    # Django
    env.requirements = "prod.txt"

    # Virtualenv
    env.venv_path = get_stage_var("VENV_PATH")

    # UWSGI
    env.uwsgi_ini_path = get_stage_var("UWSGI_INI_PATH")
Beispiel #2
0
def local():
    from fabrik.recipes import wordpress
    wordpress.register()

    # We use local versions of run, cd and exists
    env.run = elocal
    env.cd = lcd
    env.exists = os.path.exists

    env.stage = "local"
    env.branch = "develop"

    # SSH info are not needed on local deployment.
    # env.hosts = [get_stage_var("HOST")]
    # env.user = get_stage_var("USER")
    # env.password = get_stage_var("PASSWORD")
    env.app_path = get_stage_var("APP_PATH")
    env.source_path = get_stage_var("APP_SOURCE_PATH", "src")
Beispiel #3
0
def local():
    # Recipe
    from fabrik.recipes import wordpress  # NOQA

    # Local versions of run/cd/exists
    env.run = elocal
    env.cd = lcd
    env.exists = os.path.exists

    # Metadata
    env.stage = "local"

    # VC
    env.branch = "develop"

    # SSH Config
    env.app_path = get_stage_var("APP_PATH")
    env.source_path = get_stage_var("APP_SOURCE_PATH", "src")
Beispiel #4
0
def local():
    from fabrik.recipes import django
    django.register()

    # We use local versions of run, cd and exists
    env.run = elocal
    env.cd = lcd
    env.exists = os.path.exists

    env.stage = "local"
    env.branch = "develop"

    # SSH info are not needed on local deployment.
    # env.hosts = [get_stage_var("HOST")]
    # env.user = get_stage_var("USER")
    # env.password = get_stage_var("PASSWORD")
    env.app_path = get_stage_var("APP_PATH")
    env.source_path = get_stage_var("APP_SOURCE_PATH", "src")

    # Django
    env.requirements = "prod.txt"

    # Venv
    env.venv_path = get_stage_var("VENV_PATH")
Beispiel #5
0
def prod():
    from fabrik.recipes import wordpress
    wordpress.register()

    env.stage = "prod"
    env.branch = "master"

    # SSH info are not needed on local deployment.
    env.hosts = [get_stage_var("HOST")]
    env.user = get_stage_var("USER")
    env.password = get_stage_var("PASSWORD")
    env.app_path = get_stage_var("APP_PATH")
    env.source_path = get_stage_var("APP_SOURCE_PATH", "src")

    # (Optional) Public path (example: var/www/yourproject)
    env.public_path = get_stage_var("PUBLIC_PATH")
Beispiel #6
0
def prod():
    # Recipe
    from recipes import wordpress_bedrock
    wordpress_bedrock.register()

    # Metadata
    env.stage = "prod"

    # VC
    env.branch = "master"

    # SSH Config
    env.hosts = [get_stage_var("HOST")]
    env.user = get_stage_var("USER")
    env.password = get_stage_var("PASSWORD", "")
    env.key_filename = get_stage_var("KEY_FILENAME")
    env.forward_agent = True

    env.app_path = get_stage_var("APP_PATH")
    env.source_path = get_stage_var("APP_SOURCE_PATH", "src")
    env.public_path = get_stage_var("PUBLIC_PATH")

    # Other
    env.max_releases = 5