FH-FABLIB

fh-fablib的Python项目详细描述


用法

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)

安装

运行:

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在一个问题被连续正确回答三次/并添加差异后,我如何将程序循环回开始   Java中未实例化的匿名类   java如何在Android中录制视频,只允许横向模式和最长时间录制时间   java从另一个活动发送实时消息   多线程java线程和互斥   java禁用Spring安全日志   JAVA伊奥。StreamCorruptedException:在与子级和父级ProcessBuilder通信时写入子级中的标准输出时,流头无效   使用Java(HttpURLConnection)对Restheart进行身份验证(对于Mongodb)   java如何解决Jenkins中的SAXParseException?   java为什么我需要mockito来测试Spring应用程序?   计算sin-cos和tan时缺乏精度(java)   java Hibernate。不同项目中相同一对一映射的不同行为   java图像滑块:如何使用JavaFX将图像放在另一个图像上   java Mockito在使用when时抛出NotAMockException   http Java servlet发送回响应