What Capistrano plugins, recipes and templates. Installing sudo gem install capitate Running Add capitate to your Capfile. Copy this somewhere near the top: require 'capitate' require 'capitate/recipes' set :project_root, File.dirname(__FILE__) The basics Capitate has: Plugins to help install applications, via yum or manually unpacking, and building. Also to prompt for input, install gems, run she
Capistranoãå©ç¨ãã¦ãããã¤ãè¡ãå ´åãããã©ã«ãã®è¨å®ã§ã¯ããããã¤å ã®ãµã¼ãããã¢ã¸ã¥ã¼ã«ãåå¾ããããã«ã½ã¼ã¹ã管çããã¦ãããªãã¸ããªã«ã¢ã¯ã»ã¹ããã ãã ãã½ã¼ã¹ã管çãã¦ãããªãã¸ããªã¯ç¤¾å ã«ãã£ã¦ããããã¤å ã®ãµã¼ãããã¯ç´æ¥ã¢ã¯ã»ã¹ã§ããªç°å¢ã¨ããã®ãçµæ§å¤ãã¨æãã ããã£ãã±ã¼ã¹ã®å ´åã¯ãdeploy.rbã®è¨å®ã以ä¸ã®ããã«è¨å®ããå¿ è¦ãããã # ãªãã¸ããªã®ã½ã¼ã¹ãCapistranoãå®è¡ãããã·ã³ã«åå¾âå§ç¸®âãããã¤â解åâé ç½®ããã set :deploy_via, :copy # âã§ãªãã¸ããªããã½ã¼ã¹ãåå¾ããéã«ã¨ã¯ã¹ãã¼ãããããã«è¨å®ãï¼ããã©ã«ãã¯ã¨ã¯ã¹ãã¼ãã§ã¯ãªãããã§ãã¯ã¢ã¦ãï¼ set :copy_strategy, :export # å§ç¸®ãã¡ã¤ã«ã®ã¿ã¤ããæå®ãï¼ããã©ã«ãã¯ãtar.gzï¼ set :copy_comp
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
One of the most important parts of a development process is an application deployment. There are many tools developed to make this process easy and painless: from the simple inploy to a complex all-in-one chef-based solutions. My tool of choice is Capistrano, simple and incredibly flexible piece of software. Today Iâm going to talk about some advanced Capistrano usage scenarios. 1. Graceful Passen
One of the great things about Rails and its community is that they are very lazy. Lazy in the good way of not wanting to do boring, repetitive, error prone things manually. They metaprogram and they automate. A great example of this is Capistrano. Capistrano allows you to deploy Rails applications with ease. The normal scenario is baked into Capistrano as a deployment convention and then you can c
Capistranoã«ã¯ã¿ã¼ã²ãããã¹ãã«ãã¡ã¤ã«ãéä¿¡ããã¡ã½ããã¨ãã¿ã¼ã²ãããã¹ããããã¡ã¤ã«ãåä¿¡ããã¡ã½ããããããå ·ä½çã«ã¯putãuploadãgetãdownloadã®å種é¡ãputã¨uploadã¯ãã¡ã¤ã«ã®å 容ãéä¿¡ããã®ã¨æå ã«ãããã¡ã¤ã«ãéä¿¡ããã®ã¨ã§éããputã¯å¼æ°ã«ãã¡ã¤ã«ã®å 容ãã¨ããuploadã¯ãã¹åãã¨ãã put "nameserver 10.0.0.1\n", "/etc/resolv.conf" upload "/path/to/resolv.conf", "/etc/resolv.conf" ã§ã¯getã¨downloadã®éãã¯ä½ãã¨ããã¨ãgetãã¿ã¼ã²ãããã¹ã群ã®ãã¡ã®ä¸ã¤ã ããããã¡ã¤ã«ãåä¿¡ããã®ã«å¯¾ããdownloadã¯ãã¹ã¦ãããã¡ã¤ã«ãåä¿¡ããã get "/etc/debian_version", "/tmp/debi
ä»åã¯ãCapistrano ã® deploy:web:disable 㨠deploy:web:enable ã¿ã¹ã¯ã«ã¤ãã¦ã cap -T ã§è¡¨ç¤ºããã説æã«ããã°ãããããã®ã¿ã¹ã¯ã®ç®çã¯æ¬¡ã®éãï¼ deploy:web:disable -- 訪åè ã«ã¡ã³ããã³ã¹ãã¼ã¸ãè¦ããã deploy:web:enable -- åã³ã¢ããªã±ã¼ã·ã§ã³ãWebã¢ã¯ã»ã¹å¯è½ã«ããã ãã¼ãã便å©ããã§ããããããã ãã§ã¯ä½ãã©ããªãã®ãä»ã²ã¨ã¤ãã³ã¨æ¥ãªããã½ã¼ã¹ã³ã¼ããè¦ã¦ã¿ããï¼ä¸é¨ãçç¥ï¼ã namespace :deploy do namespace :web do task :disable, :roles => :web, :except => { :no_release => true } do require 'erb' on_rollback { run "rm #{share
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ãã®ã¢ããªã±ã¼ã·ã§ã³ã§ã§ããã㨠deployç¨ã¢ããªã±ã¼ã·ã§ã³ã SSHã§ã¢ã¯ã»ã¹å¯è½ã§ãåãã¦ã¼ã¶å/ãã¹ã¯ã¼ãã§ãåããã£ã¬ã¯ããªæ§æã®ãã®ã§ããã°ãè¤æ°å°ã«é ç½®å¯è½(é ç½®å ãµã¼ãåãè¨å®ã«è¿½å ããã ã) subversionããã®ã¨ã¯ã¹ãã¼ããæåãwebã¢ããªããããã¯ãããããã»ãã¥ã¢&åçç é ç½®å ã§ãã¤ã°ã¬ã¼ã·ã§ã³å¯è½ã é ç½®å ã§fcgiãmongrelãªã©ã®åèµ·åå¯è½ é ç½®å ã§ã®ãã¼ã«ããã¯(ä¸ã¤åã®é ç½®ç¶æ ã«æ»ã)å¯è½ é ç½®å ã¯éå»ã®é ç½®ç¶æ ãæç³»åã§ä¿æãã¦ãã(ãã£ã¬ã¯ããªåãã¿ã¤ã ã¹ã¿ã³ãã¨ãã¦ä¿æ) 対象ãã¼ã¸ã§ã³
â» ãã®è³æã«ã¤ã㦠2006å¹´4æã®åå¼·ä¼è³æãCapistranoã®ãã¼ã¸ã§ã³ã¢ããï¼ç¾æç¹ã§ã¯1.3.1ã«ãªã£ã¦ã¾ããï¼ã«ããä»æ§å¤æ´ãªã©ã«åããã¦ã¡ãã£ã¨ä¿®æ£ãããã®ã§ãã 質çå¿çã®é¨åã¯å½æã®ã¾ã¾ãªã®ã§æåã®è³ªåãåã ããã§ãã Capistranoã£ã¦ä½ãªã®ã ãããã¤ãã¼ã« ãããã¤=é å åè : Capistrano: Automating Application Deployment ä¸è¨ã§è¨ãã¨è¤æ°ã®ãµã¼ãä¸ã§åæã«ä¸¦è¡ãã¦ã³ãã³ããå®è¡ã§ãããã¼ã«ã è¤æ°ã®ãµã¼ãã§åãã¦ãããµã¼ãã¹ã®ãããã¤ã楽ã«è¡ããã¨ãã§ããã Railsèµ·æºãªã®ã§Railsã«ç¹åããé¨åãããããã»ãã®ã¢ããªã±ã¼ã·ã§ã³ã§ã使ããã æã¯SwitchTowerã¨å¼ã°ãã¦ãããã¯ã¦ãªã§ã使ããã¦ãã ä½ãããã®ã è¤æ°ãµã¼ãã¸ã®ä½æ¥ãå¹çåãèªååã§ãã å®ç¾©æ¸ã¿ã®æ¨æºã¿ã¹ã¯ã«æ²¿ã£ãéç¨ããã
18æ¥ã® Railsåå¼·ä¼ ã«è¡ã£ã¦ããã åå ååã¯4ã¤ã®ã»ãã·ã§ã³ã«åããããç§ã¯Capistranoã»ãã·ã§ã³ã®ãªã¼ãã¼ã«ãªã£ãã å æ¥ä¼ç¤¾ã§ãããã¤ããã¨ãã«ãã¹ãããããã¦ãã¾ã£ã¦ããããã¤ãã¼ã«ã®éè¦æ§ã身ã«æã¿ããããã§ä»ã¾ã§ã¯ããã»ã©ã¡ããã¨è§¦ã£ããã¨ã¯ãªãã£ãããã©ããã²ã¨ã¤Capistranoã触ã£ã¦ã¿ããã¨æã£ã¦ã»ãã·ã§ã³ãéããã Capistrano ã¯Rubyã§æ¸ããããããã¤ãã¼ã«ã§ãRakeããããã¤ä½æ¥åãã«å¼·åãããããªãã®ã ãåºæ¬ã¯Rakeãªã®ã§Rakeã¨ãMakeã¨ãAntã¨ãã使ã£ããã¨ãããã°æããªãã ããã©ã«ãã§ã¯Railsã¢ããªã±ã¼ã·ã§ã³ã®æ§æã«åãããè¨å®ã«ãªã£ã¦ããããã©ããè¨å®(ã¬ã·ãã¨å¼ã°ãã)ãå¤æ´ããã°ä»»æã®ã¢ããªã±ã¼ã·ã§ã³ã«é©ç¨å¯è½ã§ãããå®éã ã¯ã¦ãª ã§ã¯Perlã¢ããªã±ã¼ã·ã§ã³ã«é©ç¨ãã¦ãããããã次ã®æ¡ä»¶ãæºããç°å¢
ã³ã¡ã³ããã ãã©ãã¯ããã¯ãã ã«ãã´ãªã¼:ããã°ã©ã Capistranoã¨ã¯ãã¢ããªã±ã¼ã·ã§ã³ã®é å¸ã»åèµ·åãªã©ãç°¡åã«è¡ãããã¼ã«ã§ããCapistranoã¯Rubyã§ä½ããã¦ãããç°¡åã«æ¡å¼µãããã¨ãã§ãã¾ããç¹ã«Ruby on Railsã¨ã®ç¸æ§ãããããµã¼ãåãªã©ãè¨å®ããã ãã§ä½¿ç¨ãããã¨ãã§ãã¾ãã Capistranoã®è§£èª¬è¨äºã¯ãã¡ãã¡ã§è¦ããããã¨ãã§ãã¾ãããææ°ã®2.0ç³»ã§ã¯å©ç¨æ¹æ³ãå¤ãã£ã¦ããã以åã®è¨äºããã¾ãå½¹ã«ç«ããªããªã£ã¦ãã¾ããä»åã2.1ã§ç°å¢æ§ç¯ããã®ã§ããã®éã«å¾ããã¦ãã¦ãã¾ã¨ãã¦ããã¾ãã 使ç¨ããç°å¢ã¯ä»¥ä¸ã®éãã§ãã Debian GNU/Linux Sarge Ruby 1.8.6 RubyGems 0.9.2 Rails 1.2.3 Mongrel 1.0.1 Subversion 1.4.3 Capstrano 2.1.0 Ca
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}