Railsã¢ããªã®ãããã¤ãã¼ã«ã¨ãã¦ããã¡ã¯ãã¹ã¿ã³ãã¼ãçãªä½ç½®ã«ããCapistranoã«ã¤ãã¦ã TL;DR HOSTSã¨ROLESã§ã¯ãªããHOSTFILTERã¨HOSTROLEFILTERã使ãã ã¿ã¹ã¯ã®å®è¡å å¶éæ¹æ³ Capistranoã¯ããããã¤å ãµã¼ãã«"ãã¼ã«"ãè¨å®ããç¹å®ã®ãã¼ã«ã«æå±ãããµã¼ãå ¨ã¦ã«å¯¾ãã¦ä¸æ¬ã§ãªã«ãããã®å¦çãå®è¡ããããã¨ãã§ããã # deploy.rb server 'webserver1' :web server 'webserver2' :web server 'dbserver', :db, :primary => true ... task :do_something, :roles => :web do ... end cap do_something #=> webserver1, webserver2ã«å¯¾ãã¦ã®ã¿do_so
{{#tags}}- {{label}}
{{/tags}}