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.forward_agent = True # Remove this for multi-env support env.box_hardwired_environment = 'production' # Set this to a different value if not using gunicorn@.service # env.box_unit_template = 'gunicorn' # 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(), min_version=(0, 6, 0), systemd=True)
Installation
Run:
sudo pip2 install -U fh-fablib # or sudo pip2 install -U https://github.com/feinheit/fh-fablib/archive/master.zip
Project details
Release history Release notifications | RSS feed
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.8.0.tar.gz
(12.8 kB
view details)
File details
Details for the file fh-fablib-0.8.0.tar.gz
.
File metadata
- Download URL: fh-fablib-0.8.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fff66071e6a587bd10c0296eb6011685bfa9719cc39c6f4287955974b9b63a0 |
|
MD5 | 3ee8bd98ec0c7b8c5e931616e8c2c421 |
|
BLAKE2b-256 | 3842b3d0f92581431d9ba0d0b2b23e5c166bf91409865af054e79a2384d69d9f |