http://www.javaeye.com/topic/130853
以下这个链接很重要 VERY IMPORTANT!!!
http://www.railser.com/forums/4/topics/33
这里的要点是在在执行symlink后再执行了两个自定义的操作
永恒之路-ROR
centos+rails+php+lighttpd | ubuntu下rmagick快速安装(备忘)
2008-12-10
capistrano2.5使用
gem install capistrano
到项目目录中运行
capify .
会自动产生
./Capfile
./config/deploy.rb #主配置文件
Ruby代码
- set :application, "numed_collection"
- set :repository, "svn://×.×.×.×/numed_collection"
- set :deploy_to, "/data/www"
- set :scm, :subversion
- set :user,"root"
- set :use_sudo, false
- role :app, "*.*.*.*"
- role :web, "*.*.*.*"
- role :db, "*.*.*.*", :primary => true
set :application, "numed_collection" set :repository, "svn://×.×.×.×/numed_collection" set :deploy_to, "/data/www" set :scm, :subversion set :user,"root" set :use_sudo, false role :app, "*.*.*.*" role :web, "*.*.*.*" role :db, "*.*.*.*", :primary => true
如果用的是普通用户,则把set :user_sudo取消。
cap deploy cap deploy:setup
centos+rails+php+lighttpd | ubuntu下rmagick快速安装(备忘)
评论
发表评论
表情图标
![](http://www.javaeye.com/images/smiles/icon_biggrin.gif)
![](http://www.javaeye.com/images/smiles/icon_smile.gif)
![](http://www.javaeye.com/images/smiles/icon_sad.gif)
![](http://www.javaeye.com/images/smiles/icon_surprised.gif)
![](http://www.javaeye.com/images/smiles/icon_eek.gif)
![](http://www.javaeye.com/images/smiles/icon_confused.gif)
![](http://www.javaeye.com/images/smiles/icon_cool.gif)
![](http://www.javaeye.com/images/smiles/icon_lol.gif)
![](http://www.javaeye.com/images/smiles/icon_mad.gif)
![](http://www.javaeye.com/images/smiles/icon_razz.gif)
![](http://www.javaeye.com/images/smiles/icon_redface.gif)
![](http://www.javaeye.com/images/smiles/icon_cry.gif)
![](http://www.javaeye.com/images/smiles/icon_evil.gif)
![](http://www.javaeye.com/images/smiles/icon_twisted.gif)
![](http://www.javaeye.com/images/smiles/icon_rolleyes.gif)
![](http://www.javaeye.com/images/smiles/icon_wink.gif)
![](http://www.javaeye.com/images/smiles/icon_exclaim.gif)
![](http://www.javaeye.com/images/smiles/icon_question.gif)
![](http://www.javaeye.com/images/smiles/icon_idea.gif)
![](http://www.javaeye.com/images/smiles/icon_arrow.gif)
字体颜色: 标准深红红色橙色棕色黄色绿色橄榄青色蓝色深蓝靛蓝紫色灰色白色黑色 字体大小: 标准1 (xx-small)2 (x-small)3 (small)4 (medium)5 (large)6 (x-large)7 (xx-large) 对齐: 标准居左居中居右
提示:选择您需要装饰的文字, 按上列按钮即可添加上相应的标签
您还没有登录,请登录后发表评论(快捷键 Alt+S / Ctrl+Enter)
wtb
搜索本博客
最近访客 >>更多访客
博客分类
其他分类
最近加入圈子
存档
评论排行榜
声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。若作者同意转载,必须以超链接形式标明文章原始出处和作者。
© 2003-2010 JavaEye.com. All rights reserved. 上海炯耐计算机软件有限公司 [ 沪ICP备05023328号 ]