链接克隆 完整克隆
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:
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.
请享用。
链接克隆 完整克隆