rt的结构脚本
rt.commands的Python项目详细描述
RT.命令
rt的部署命令(主要是结构脚本)
您的fabfile
若要使用rt.commands,请将其导入fab文件并 设置一些环境变量。
例如,您可以从这个模板开始:
# 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_组件
- 同步变量:
- 之前需要staging或production。 同步组件的buildout var文件夹 它接受组件参数(默认值为plone) 你可以通过..获取buildout根目录下的变量
rt.commands.components.plone
同步plone的特殊功能。 给定这个fab文件:
# -*- 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_文件存储和sync_blobstorage功能
- 开始编写一些文档
- 同步变量现在处理“…”
- 添加了最新功能 [ALE RT]
0.1.4(2013-10-10)
- 什么都没变。
0.1.3(2013-09-18)
- 初始工作