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_组件

同步变量:
之前需要stagingproduction。 同步组件的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)

  • 初始工作

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

推荐PyPI第三方库


热门话题
java与Groovy正则表达式匹配混淆   java控制台未定义为JSNI   主目录中的java指针异常   java如何获取hashmap中的arrayList的大小   ApachePOI用于文本,Java代码中的word doc(.docx)中没有进行追加   Ruby对象到Java对象   JavaSpringJPA哈希集只返回一个值   Java在执行由配置了精确类路径参数的mavenjarpluin生成的可执行jar时无法找到依赖项   java我试图在画布上写一个文本,但什么也没发生   java HTTP 404源服务器找不到目标资源的当前表示形式,或者不愿意透露存在该表示形式。不起作用   java提取小数点后的最后一个数字   oop Java:无法访问对象的元素   PHP URL中RecyclerView中的java句柄空异常   不调用OnCreateViewHolder的java Update RecyclerView适配器项