跳转到主要内容

Fabric脚本为RT

项目描述

rt.commands

RT的部署命令(主要是fabric脚本)

您的fabfile

要使用rt.commands,在fabfile中导入它并设置一些环境变量。

例如,您可以从这个模板开始

# this is necessary to make the fabric commands available
from fabric.api import env
from rt.commands import *
from rt.commands.project import *
from rt.commands.buildout_components import *

# This is the main python version
env.python_version = '2.7'

# This is the buildout script to use
env.buildout_cfg = 'buildout.cfg'

# And some hosts
env.staging_user = 'plone'
env.staging_host = 'staging.example.com'
env.staging_dir = '/opt/www.demo.example.com'
env.production_user = 'plone'
env.production_host = 'example.com'
env.production_dir = '/opt/www.example.com'

rt.commands

生产

将生产服务器推送到env.hosts

预发布

将生产服务器推送到env.hosts

rt.commands.buildout_components

sync_var

在同步组件的buildout var文件夹之前需要预发布生产。接受组件参数(默认=plone)您可以传递..以获取buildout根目录的var

rt.commands.components.plone

同步plone的特殊功能。给定以下fabfile

# -*- coding: utf-8 -*-
from fabric.api import env
from rt.commands import production, staging
from rt.commands.components.plone import sync_blobstorage, sync_filestorage

env.staging_user = 'redturtle'
env.staging_host = 'somehost.redturtle.it'
env.staging_dir = '/opt/somedir'

您可以这样调用

fab staging sync_blobstorage
fab staging sync_filestorage

为了使这些文件夹同步

变更日志

0.1.5 (2014-07-17)

  • 为plone组件添加了sync_filestorage和sync_blobstorage函数

  • 开始编写一些文档

  • sync_var现在可以处理‘..’

  • 添加了_isuptodate函数 [ale-rt]

0.1.4 (2013-10-10)

  • 尚未有任何更改。

0.1.3 (2013-09-18)

  • 初始工作

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

rt.commands-0.1.5.zip (9.5 kB 查看散列值)

上传时间

由以下机构支持