You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ããã«ã¡ã¯å¯ºå²¡ã§ãã ãã®è¨äºã¯ TECHSCORE Advent Calendar 2014 ã® 3 æ¥ç®ã®è¨äºã§ãã ããã¯é¥ãæãä¸çãæªã ãããã¤ãã¼ã«ãæã«å ¥ããåã®ã話ã ãã®é ã®ã¨ã³ã¸ãã¢ã«ã¨ã£ã¦ããããã¤ã¯ç¥èãã¤ç大ãªåå¼ã§ãã£ãã åå¼ã«ã¯æ±ºãã¦ç ´ã£ã¦ã¯ãããªãæå¾ãåå¨ããã ãtarãscpãrakeãªã©ã®é«åº¦ã§é£è§£ãªåªæãé§ä½¿ããæ£ããé åºããã£ã¦å·ãè¡ãã¹ãã æå¾ã¯å°åãæåãå®æã®éãã«ãããã¾ãã¾ãªããªã¨ã¼ã·ã§ã³ãåå¨ããåå¼ã®å°é£ãã«æè»ããããã ããããæå¾ã¯å¿ ãããç· ããããããã®ã ã ãä¸åº¦åªæãééãããã®æã¯ã大ããªãç½åããã®ä¸ã襲ãã§ããããã¨ã ç½åãæããã¨ã³ã¸ãã¢ãã¡ã¯ãé·å¤§ã§éåãªæé æ¸ãä½ãããªãã¨ããããã¤ãä¹ãåããã¨ããã ããã§ããªããæé æ¸ã®ãã°ãã¿ã¤ããã¹ã«ããæ²åã¯ç¹°ãè¿ãããã®ã§ãã£ãâ¦ã ãããã度éãªãæ²åã¨
2017-08-15 è¿½è¨ Googleã®ãCapistranoãæ¤ç´¢é ä½ã§ä¸ä½ã«ãããããããã¾ã ã«ãã®è¨äºããã³ãã³ãã¯ãããããã§ããã3å¹´åã®æ å ±ã§ãããå·çè ã¯Rubyãå°éã¨ããããã°ã©ãã¼ã§ã¯ãªãã®ã§ãã®ç¹ã注æãã ãããï¼è¿½è¨ããã¾ã§ï¼ ããããã¨ã³ããªã¼ãä¸ããªããè¦ããã§ããCapistranoã ãããããã£ã¨ããããè½ã¡çãã¦ããæ°ãããã®ã§ããããå®çµç·¨ã¨ãããCapistranoã®åºæ¬ã¨ãã¯ãã§ã«ãã¡ãã®ã¨ã³ããªã¼ã§æ¸ããã®ã§ãä»åã¯åè¨å®ãã¡ã¤ã«ã®æ¸ãæ¹ã¨ãããã®ä»ããã£ããã¤ã³ããä¸å¿ã«ã ä»åä½æãããã¡ã¤ã« 以ä¸4ãã¡ã¤ã«ãä½æããã Capfile config/deploy.rb config/deploy/staging.rb lib/capistrano/tasks/unicorn.cap åºæ¬çã«Capistranoã使ãå ´åãå¿ é ããªã®ã¯ä¸2ã¤
by @dekokun on 2013/05/21 23:46 Tagged as: Capistrano, Fabric. æè¿ãFabric, Capistranoã¨ç«ã¦ç¶ãã«2種é¡ã®ãããã¤ãã¼ã«ã使ã£ã¦ãããã¤ç°å¢ãæ§ç¯ããæ©ä¼ãããã¾ããã®ã§ããã®éã«æãã両è ã®å©ç¹ãæ¸ãã¦ã¿ããã¨æãã¾ãã 両è ã®ç°¡åãªè§£èª¬ ããããCapistrano, Fabricã«ã¤ãã¦ããçæ¹ã¯ç¥ã£ã¦ãããã©çæ¹ã¯ç¥ããªãããã¨ãã人ããããã¨æãã¾ãã®ã§ãç°¡åãªèª¬æããã¾ãã 両æ¹ã¨ãä½ããç¥ããªã人ã¯â¦ãèªåãããã¤ãã¨ããã®ãããã§æ¤ç´¢ãã¦ã¿ãã¨ããããããªãã§ãããã Capistranoã¨ã¯ Ruby製ã®Fabricã¿ãããªãã®ã§ã Fabricã¨ã¯ Python製ã®Capistranoã¿ãããªãã®ã§ã Fabricã¯ç§ã®ä¸ã§ã¯ãããã¤ãã¼ã«ã¨ããèªèãªã®ã§ãããæè¿Chefã¨æ¯è¼ããããã¨
ã¯ããã« ãã®è¨äºã¯GREE Advent Calendar 2013å¹´ã®21æ¥ç®ã§ããã楽ãã¿ãã ããï¼ ããã«ã¡ã¯ãã¢ã´ã²ãããã³ãã£ã¼ã ã¨è©å¤ã®ä¹å²¡ã§ããGREEã§ã¯ãJavaãScalaãå¸æããããã®åå°ãåºããããããããã¤ãç£è¦ã®ä»çµã¿ã¥ãããªã©ã横æçã«ãã£ã¦ãã¾ããä»åã¯ãã®éç¨ã§å¾ãããç¥èããCapistrano 3ã®å ¥éè¨äºãã¨ããå½¢ã§å ±æããã¦ããã ãã¾ãã ãã®è¨äºã§ã¯Capistrano 3ã®åºç¤ããç´¹ä»ãã¾ããCapistrano 3ã¯Rubyããã¼ã¹ã«ãããµã¼ãæä½ããã³ãããã¤ã®èªååãã¼ã«ã§ããCapistrano 3ãå©ç¨ãããã¨ã§ããããã¤ãªã©ã®è¤éãªãµã¼ãæä½ãèªååãããã¨ãã§ãã¾ããããã®è¨äºã§ã¯ãç¹ã«ãããã¤ã«ç¦ç¹ããã¦ãªãããCapistranoã§ãµã¼ãæä½ãèªååããèãæ¹ã¨å®ç¾æ¹æ³ãã説æãã¦ããã¾ãã Capistrano 3ã®ç¿å¾
GitHub / Bitbucket ã®ãã©ã¤ãã¼ããªãã¸ããªãç¡æ㧠CI ãæ¾é¡ã® wercker ã¨ãããµã¼ãã¹ãããã¾ãã(2013/11/30 ç¾å¨) ãµã¤ãããããã§ç´ æµã§ãããã«ãæåå¾ãCapistrano ã§ãããã¤ãèªåå®è¡ãããæ¹æ³ãæ¸ãã¦ããã¾ãã ã¾ããã¢ããªã®è¨å®ã§ SSH å ¬ééµãä½æãã¾ãã çæãããå ¬ééµã¯ããããã¤å ãµã¼ãã® ~/.ssh/authorized_keys ã Bitbucket ã®ãããã¤éµãªã©ã«è¿½å ãã¦ããã¾ãã 次ã«ãã¢ããªã®è¨å®ãã Deploy targets ã®è¨å®ããã¾ããCustom deploy ãé¸æãã¦ã master ãã©ã³ãã®ãã«ãã«æåããããèªåãããã¤ããããã«ãã¾ãã å ¥åããããDeploy pipeline ã® Add new variable ãã¯ãªãã¯ã SSH Key pair ãé¸æããå ã»ã©
Capistranoã便å©ã§ãããã capistrano/capistrano æè¿ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ããããã£ãã®ã§ããã使ãæ¹ãã¨ãããã¹ã¯ãªããã®æ¸ãæ¹ããä½æ³ãå¤ããããCapistrano 3ã«ã¢ãããã¼ãããã¯ãããã©å ¨ç¶åããªãã¦ã©ããªã£ã¦ãã ãã¨ããæµãã¯ãã¯ããç´æã¿ããã§ãã 試ãã«åãå人ã§ä½ã£ã¦ãã¦ã§ããµã¤ãã®Capistranoãã¢ãããã¼ããã¦ã¿ãã®ã§ããã®ä¸ã§ãããªã¨ããã«æ°ãä»ããããªãã¨æããã¤ã³ãã§ãæ¸ãã¦ããã¾ãã capifyã¯ä½¿ããªã Capistranoã使ãã¨ãã¯$ bundle installããã次ã«$ bundle exec capify .ã¨ããã®ããç´æã®æµãã§ãããããããã¯capifyã使ã£ã¦ãcap installã使ã£ã¦ãã¨è¨ããã¾ãã ã§ãã®ã§: $ bundle exec cap installã¨ãã¾ãããã ãã«ãã¹
Rails3.1 Capistranoã§ãããã¤ããæã«public/images, stylesheets, javascriptsã®No such file or directoryã¨ã©ã¼ èªåã®ãã°ã¯ç¡ãããã®ã§@yuum3ã®ãã°ãå¼ç¨ããã¦é ãã¾ãã # executing "find /home/rails_apps/todo31/releases/20110912141706/public/images /home/rails_apps/todo31/releases/20110912141706/public/stylesheets /home/rails_apps/todo31/releases/20110912141706/public/javascripts -exec touch -t 201109121417.06 {} ';'; true" servers: *"
ãã¡ãã¡sshã§ãµã¼ãã¼ç¹ãã§ãgit pullããã®ãããã©ããããªã£ã¦ããäºã¨ Capistranoã®ãªãã·ã§ã³ãæ°ã«ãªã£ãã®ã§è¨å®ãã¦ã¿ãã åè Capistranoã§ã¢ããªã±ã¼ã·ã§ã³ã®ãããã¤ä½æ¥ãå¹çå git使ç¨ã§ãã # SCM(Software Configuration Management)ã¯gitä½¿ç¨ set :scm, :git å¾ãä»ã«ãè²ã ãªãã·ã§ã³ãããã¿ãã Deploying with Capistrano ç¹ã«æ°ã«ãªã£ãã®ããã set :deploy_via, :remote_cache 説æèªãã§ã¿ã㨠In most cases you want to use this option, otherwise each deploy will do a full repository clone every time (ã»ã¨ãã©ã®ã±ã¼ã¹ã§ããªãã¯ãã®
ãCakePHP2 å®è·µå ¥éãã§ç´¹ä»ããã¦ããã®ãè¦ã¦åãã¦ç¥ã£ãã®ã§ããã©ã capcakeã¨ãããã¼ã«ãããã¾ãã jadb/capcake · GitHub æ¬âCakePHP2 å®è·µå ¥é (WEB+DB PRESS plus) âCapcake extends Capistrano, removing the rails-ism, replacing them by more cake-ish ones.âã¨æ¸ãã¦ããã¾ãã ãªãã¨ãã³ã¬ã¯æ¥½ãããã ãï¼ï¼ã¨ãã話ã§ãããããã ã ç¾ç¶ã®è©± CakePHPãCapistranoã«ä¹ããã¼ã¨ããã¨ããã¿ãã¿ã¨(FTPã§æ±ããå¦ãã«)ããã¨é¢åãªã®ã tmpãã£ã¬ã¯ããªã¼ã®ä¸èº«ã¨ææ権 ãã°ã®ä¸èº«ã¨ææ権 ç°å¢ãã¡ã¤ã«ã®åãæ¿ã(core.php, database.php) ã§ããã¾ãã æã ã¯ããã£ã¨ä½ã£ãã±ã¼ããããã£ã¨ãåºãã
Capistrano deployment tips collection document summarized in 3 sentences: The document shares tips for using the Capistrano automation tool, including recommendations for colorizing Capistrano commands with the capistrano_colors plugin. It also describes using the capistrano-ext plugin to better organize different deployment configurations and set environment-specific options. The document provide
ã¢ããªã±ã¼ã·ã§ã³ã®ãããã¤ãèªååãã¹ããªã®ã¯è¨ãã¾ã§ããªããã¨ã§ãã ä¸å¿æåã§ãããã¤ãè¡ãå ´åã®åé¡ç¹ã«ã¤ãã¦æ´çãã¦ããã¨ä»¥ä¸ã«ãªãã¾ãã ããã¸ã§ã¯ãã®æéä¸ããã¦éç¨ã«å ¥ã£ã¦ãããä½åº¦ãæã§ãããã¤ããã¨ãããã¨ã¯ã¨ã¦ã¤ããªãå¤ãã®æéãæä½æ¥ã«è²»ãããã¨ã«ãªããããã¤å ã®ç°å¢ã®æ°ãå¤ããªãã°ãªãã»ã©ä½æ¥ã®æéãå¢ããæä½æ¥ã§ä½æ¥ããã¨ééãããããç¹ã«æé ãè¤éã ã£ããç°å¢ãå¤ãã£ããããã¨ç¢ºçã¯é£èºçã«ããããããããã¤ããã¢ããªã±ã¼ã·ã§ã³ã«åé¡ããã£ã¦ããã«æ»ããªããã°ãªããªãå ´åã«å¤ãã®æéãããããå ´åã«ãã£ã¦ã¯ãã¸ãã¹ä¸ã®æ©ä¼æ失ã«ç¹ããæ¬æ¥ã¯ä¾¡å¤ãçããã£ã¼ãã£ã¼ãå®è£ ãããã¨ã«æéãããããã¯ããããããããã¨ããã£ã¦ããã¨ã©ãã©ãæéããªããªã£ã¦ããã¾ããã¾ãæä½æ¥ã®ãªã¹ã¯ãæ¶è²»ãããæéãæãã¦ãããã¤ã®åæ°ãæ¸ããã¦ãã¾ãã®ã¯ããã¸ãã¹å´ããã¿ãã¨ç´å¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}