Skip to content

zoodirector/fh-fablib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fh-fablib

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.forward_agent = True

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

# Set this to a different value if not using [email protected]
# env.box_unit_template = 'gunicorn'

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

fh_fablib.init(globals(), min_version=(0, 6, 0), systemd=True)

Installation

Run once:

sudo pip2 install -U fabric speckenv

Afterwards, you only have to run:

sudo pip2 install -U fh-fablib
# or
sudo pip2 install -U https://github.com/feinheit/fh-fablib/archive/master.zip

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%