Skip to main content

fh-fablib

Project description

Usage (fabfile.py):

from __future__ import unicode_literals

from fabric.api import env
import fh_fablib

# env.box_environment contains the currently active environment.

# Default values available in all environments
env.box_project_name = 'app'
env.box_domain = 'example.ch'
env.box_database_local = 'example_ch'
env.box_staticfiles = '%(box_project_name)s/static/%(box_project_name)s' % env
env.box_static_src = 'assets'
env.box_python = 'python3'
env.box_restart = ['sctl restart %(box_domain)s:*']
env.forward_agent = True

# Remove this for multi-env support
env.box_hardwired_environment = 'production'

# Environment specific values.
env.box_environments = {
    'production': {
        'shortcut': 'p',
        'domain': 'example.ch',
        'branch': 'master',
        'servers': [
            'user@example.com',
        ],
        'remote': 'production',  # git remote alias for the server.
        'repository': 'example.ch',
        'database': 'example_ch',
    },
    'staging': {
        'shortcut': 's',
        'domain': 'stage.example.ch',
        'branch': 'develop',
        'servers': [
            'user@example.com',
        ],
        'remote': 'staging',
        'repository': 'example.ch',
        'database': 'stage_example_ch',
    },
}

fh_fablib.init(globals())

Project details


Release history Release notifications | RSS feed

This version

0.1.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fh-fablib-0.1.3.tar.gz (12.1 kB view details)

Uploaded Source

File details

Details for the file fh-fablib-0.1.3.tar.gz.

File metadata

  • Download URL: fh-fablib-0.1.3.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fh-fablib-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1b4364a7d9ba9654497b2ac60a8df18c4ccb2d116ed421c4427af8603f1e01ef
MD5 3b68b32ed95a7fa0f32592c7f243f720
BLAKE2b-256 18527b237494f0595f6d1f75fb6ec0dedc81cfb81ab4f3b8f19d50a781842d68

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page