随笔分类 -  部署注意细节

摘要:10:49 [webuser@a02]$ du -hs * 45M m-video-fetcher-for-y 758M tv-c-cms 118M tv-y-cms 162M virtual-r-cms tty:[4] jobs:[0] cwd:[/opt/app/ruby] 10:49 [webuser@a02]$ du -hs m-cms/* 0 m-... 阅读全文
posted @ 2016-03-28 10:59 冰凌花花~ 阅读(584) 评论(0) 推荐(0)
摘要:部署的时候发现需要输入服务器密码,不能直接登录 3.0+版本config/deploy.rb 取消了user的写法 需要用这样的写法 https://github.com/capistrano/capistrano/blob/621985511529893d972e79452ad63eb54430f 阅读全文
posted @ 2016-03-25 16:13 冰凌花花~ 阅读(273) 评论(0) 推荐(0)
摘要:https://github.com/capistrano/capistrano/blob/v3.4.0/lib/capistrano/templates/stage.rb.erb 把/config/deploy/production.rb中的服务器列表改为数组的形式 阅读全文
posted @ 2016-03-25 15:41 冰凌花花~ 阅读(207) 评论(0) 推荐(0)
摘要:(1)首先在current文件夹下新建服务有关的nginx配置文件nginx.confupstream news_server { server unix:/tmp/unicorn.news.sock fail_timeout=0;}server { listen 8888; access_l... 阅读全文
posted @ 2015-09-18 20:29 冰凌花花~ 阅读(344) 评论(0) 推荐(0)
摘要:先在服务器上 ssh bitbucket.org点yes链接一下,才能在服务器部署或者在服务器上链接一下代码地址 git ls-remote git@bitbucket.org:xxx/xxx.git master,原因是bitbucket不在服务器的knowhosts里 阅读全文
posted @ 2015-09-18 20:11 冰凌花花~ 阅读(341) 评论(0) 推荐(0)
摘要:# gem install json -v '1.8.3'Building native extensions. This could take a while...ERROR: Error installing json: ERROR: Failed to build gem nativ... 阅读全文
posted @ 2015-08-17 19:20 冰凌花花~ 阅读(697) 评论(0) 推荐(0)
摘要:== 测试服务器是: test132 == 正式服务器是: 133, 134 == which server do you want to deploy to? (test132/133/134/83)? 134== password for 10.xxx.xx.134 is: trig... 阅读全文
posted @ 2015-08-13 17:08 冰凌花花~ 阅读(1250) 评论(1) 推荐(0)
摘要:Capistrano 2 首次部署流程修改 config/deploy.rb 和 config/deploy/production.rbbundle exec cap production deploy:setupbundle exec cap production deploy:checkbund... 阅读全文
posted @ 2015-07-29 17:03 冰凌花花~ 阅读(208) 评论(0) 推荐(0)
摘要:# 创建项目相关目录 /opt/logs/tv-cibn-cms#ruby 用户下安装 rbenv 及 ruby 1.9.3# 安装编译相关包yum install -y gcc openssl-devel libyaml-devel readline-devel zlib-develsu - ru... 阅读全文
posted @ 2014-10-16 20:48 冰凌花花~ 阅读(614) 评论(0) 推荐(0)
摘要:(1)如何自动清理老的releasecapistrano部署后自动清理老 release,默认只保留 5 个 releases添加下面代码到 config/deploy.rb# if you want to clean up old releases on each deploy uncomment... 阅读全文
posted @ 2014-08-21 10:24 冰凌花花~ 阅读(233) 评论(0) 推荐(0)