链接克隆 完整克隆_测试克隆tmp

链接克隆 完整克隆

Since Day 1 with Plone circa 2004, I’ve always taken pride in and greatly enjoyed refining my development environment.

从大约在2004年与Plone合作的第一天起,我就一直为自己感到骄傲,并且非常享受改善自己的开发环境。

It’s been stable for a while now (> 1 year or so) so I thought I’d share.

它已经稳定了一段时间(> 1年左右),所以我想分享一下。

操作系统 (Operating system)

Mac OS X Latest (Lion, at the time of this writing)

Mac OS X最新版(撰写本文时,Lion)

终奌站 (Terminal)

Mac OS X Terminal

Mac OS X终端

编辑 (Editor)

Vim

Vim

Python (Python)

Yes. All versions, via the collective Python buildout:

是。 所有版本,通过集体Python构建:

克隆人 (Plone)

Yes. All versions, via pythonpackages.com:

是。 所有版本,通过pythonpackages.com:

其他工具 (Additional tools)

A shell script to run virtualenv, buildout, etc:

运行virtualenv,buildout等的shell脚本

[bash] #!/bin/sh if ! [ -n "$1" ] then echo "Usage:nn$0 <dir>n" exit 1
fi if ! [ -d $1 ] then mkdir $1 fi cd $1 virtualenv-2.7 . bin/pip
install zc.buildout bin/buildout init cat << EOF > buildout.cfg
[buildout] extends =
http://build.pythonpackages.com/buildout/plone/4.2.x-dev EOF
bin/buildout bin/plone start sleep 4 echo "Adding Plone site..." curl -d
form.submitted:boolean="True"
http://admin:admin@localhost:8080/@@plone-addsite?site_id=Plone
bin/plone stop bin/plone fg [/bash]
[bash] #!/bin/sh if ! [ -n "$1" ] then echo "Usage:nn$0 <dir>n" exit 1
fi if ! [ -d $1 ] then mkdir $1 fi cd $1 virtualenv-2.7 . bin/pip
install zc.buildout bin/buildout init cat << EOF > buildout.cfg
[buildout] extends =
http://build.pythonpackages.com/buildout/plone/4.2.x-dev EOF
bin/buildout bin/plone start sleep 4 echo "Adding Plone site..." curl -d
form.submitted:boolean="True"
http://admin:admin@localhost:8080/@@plone-addsite?site_id=Plone
bin/plone stop bin/plone fg [/bash]

A Python script to create temporary directories:

用于创建临时目录的Python脚本

A default buildout config file:

默认的构建配置文件:

[buildout]
eggs-directory = /Users/aclark/Developer/eggs-directory
download-cache = /Users/aclark/Developer/download-cache
extends-cache = /Users/aclark/Developer/extends-cache
[buildout]
eggs-directory = /Users/aclark/Developer/eggs-directory
download-cache = /Users/aclark/Developer/download-cache
extends-cache = /Users/aclark/Developer/extends-cache

工作流程 (Workflow)

My typical workflow looks like this:

我的典型工作流程如下所示:

  • Hang in #plone on irc.freenode.net and wait for questions
  • Hear question and get inspired to run Plone
  • Run: $ test-plone `tmp`
  • 挂在irc.freenode.net上的#plone中,等待问题
  • 听到问题并受到启发来运行Plone
  • 运行: $ test-plone`tmp`

~ 1 minute later I’m browsing http://localhost:8080/Plone and can install add-ons, check ZMI settings, etc.

大约1分钟后,我正在浏览http:// localhost:8080 / Plone并可以安装加载项,检查ZMI设置等。

Enjoy.

请享用。

翻译自: https://www.pybloggers.com/2012/04/test-plone-tmp/

链接克隆 完整克隆

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值