Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
> cap deploy * executing "if [ -d /home/user/app/shared/cached-copy ]; then cd /home/user/app/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 2f0ada48590756cfb37c2fcbdab605ed229759d9 && git clean -q -d -x -f; else git clone -q -b master git@github.com:foo/bar.git /home/user/app/shared/cached-copy && cd /home/user/app/shared/cached-copy && git checkout
Capistrano has a handy task that runs rake assets:precompile for you when you are deploying your Rails 3.1 application. This gives you an easy way to get the performance boosts of having only one css file and one javascript file to load per request. The price you pay for that benefit is the amount of time it takes to run that rake task when you are deploying. There is a way to get the benefit whil
ãã¡ã®ãã¼ã ã§ã¯ï¼ãããã¤ãããã³ã«èªåçã«gitã®tagãåãããã«ãã¦ãï¼ãã¨ãã°ï¼ãã¾ãããã¤ãããï¼deploy/2014-02-01-14-48ã¨ãï¼ ãã¾ã«ï¼ãªãªã¼ã¹ããç´å¾ã«ãªãããã¹ã£ã¦ããã¨ã«æ°ä»ãã¦ï¼æ ã¦ã¦ãã¼ã«ããã¯ãããã¨ãããï¼ tagãåã£ã¦ãã®ã§ï¼ã²ã¨ã¤åã«æ»ãã°ããã®ã ãã©ï¼ãã£ã¨ï¼ã©ãã ã£ãã¨ããã£ã¦æ¢ãã®ã§æ ã¦ããï¼æ®æ®µã¯ã¿ã°æå®ãã¦ãããã¤ãã¦ãªãã®ã§ï¼ã©ããã£ã¦æ»ããå¿ããï¼ ãããã¤çµãã£ãã¨ãã«ï¼ä»åã®ãããã¤ãæ»ãã«ã¯ï¼ããããã¾ãããï¼ã¨ã表示ããããã«ããï¼ ãããã¤çµãã£ãããããªã®ãåºãï¼ååã®ãããã¤ãæ¨æ¥ã ã£ããæ¨æ¥ãããã®ã¿ã°ãåºãï¼ ãã³ãï¼æ»ãã¨ãã¯ä»¥ä¸ã®ã³ãã³ããå®è¡ãã¾ããã cap -S revision=deploy/2014-01-31-15-17 deploy å®è£ æ¹æ³ã¨ãã¦ã¯ï¼ãããªæãã«ï¼ãããã¤åã«ææ°ã®ã¿ã°
# Load DSL and Setup Up Stages require 'capistrano/setup' # Includes default deployment tasks require 'capistrano/deploy' require 'capistrano/rbenv' set :rbenv_type, :user set :rbenv_ruby, '2.0.0-p247' require 'capistrano/bundler' require 'capistrano/rails/assets' require 'capistrano/rails/migrations' # Loads custom tasks from `lib/capistrano/tasks' if you have any defined. Dir.glob('lib/capistran
ååSubversionãªãã¸ããªãdeployããã¨ããã¾ã§ãã¾ãããã ã»ãã¥ãªãã£çã«ãªãã¸ããªã®ã¦ã¼ã¶åï¼ãã¹ã¯ã¼ãããã¡ã¤ã«ã«è¨è¼ããããªãå ´åã®å¯¾å¦æ¹æ³ãè¨è¼ãã¾ãã â ååã¾ã§ã® deproy.rb set :application, "app" set :user, "ringio" set :use_sudo, false set :deploy_to, "/home/ringio/#{application}" # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` set :scm, :subversion set :scm_username, "foo" set :scm_password, "bar" set :repository
ãã®ã¦ã§ããµã¤ãã¯è²©å£²ç¨ã§ãï¼ twiwt.org ã¯ãããªãããæ¢ãã®æ å ±ã®å ¨ã¦ã®ææ°ãã¤æé©ãªã½ã¼ã¹ã§ããä¸è¬ãããã¯ããããããæ¤ç´¢ã§ããå 容ã¯ãtwiwt.orgãå ¨ã¦ã¨ãªãã¾ããããªãããæ¢ãã®å 容ãè¦ã¤ãããã¨ãé¡ã£ã¦ãã¾ãï¼
ããã«ã¡ã¯ã ã¿ã¤ãã«ã®éããªãã§ãããCapistrano ã¿ããªã¤ãã£ã¦ãããã¼ã ã£ã¦ãã¨ã§ç¬èªã®ãããã¤ã·ã¹ãã ããã£ã¦ãªãã¦ãããã«FTPã§UPã¯ãã¦ã¾ããã£ã¦äººã¯çµæ§ä½¿ã£ã¦ãããã ã¨æã£ã¦ããã§ããã©ãCapistrano ã£ã¦ãªããããã©ã«ãåãµã¼ã㧠vcs ã® update çãªãã¨ããããããã¼ã«ã«ã«ã½ã¼ã¹ããªã¼ãç¨æãã¦ããå ´åã«ä½¿ããã®ã¯ scp ã§ããªããã¨ã³ãããªãããã¨è¨ã話ã§ããã¡ãã¡ã½ã¼ã¹ããªã¼å ¨é¨é å¸ããã¦ãã転ééãæéãããã£ã¦ãããããªãã®ã§ãã¾ã¼rsyncããããã ãããã¨ãããã¨ã§ããããªæ㯠capistrano_rsync_with_remote_cache (ãªããã) ã使ãã°ããããï¼ã£ã¦ã話ã§ãã *1 luisparravicini/capistrano_rsync_with_remote_cache · GitHub ãã®ãæä¸
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
ã·ã¹ãã 管çè ã®ã¿ãªãããããã«ã¡ã¯ãä»æ¥ã¯ Rails ã¢ããªã® deploy ãã¼ã«ã¨ãã¦æåãªï¼ãããï¼Capistrano ã«ã¤ãã¦ã§ããç´¹ä»ï¼ ãããããç´¹ä»ã¯ãã§ã«æåãªäººãã¡ã«ãã£ã¦ãªããã¦ãã¾ããã¯ã¿ã·ããããã®ã¯æ¤è¨ãããã¤ã¯ã©ãã«ã©ã®ããã«ä½¿ããããã Capistrano: Home ã·ã¹ãã 管çã®è©±ãªã®ã«ãªã㧠Puppet ãããªãã®ï¼ã¨æãããããã¾ãããããã¯ã以å Puppet ã® OSX 対å¿ããã¾ããããªãã£ããã¨ã¨ãã¾ãèªåã®ç°å¢ã PPC Mac ã ã£ããããä»®æ³ãã·ã³ã使ã£ã¦ä»ã® OS ãåããã®ãç¾å®çã§ãªããé¢åã«ãªã£ã¦ãã¾ã£ã¦ããããã§ãã ã§ãå·¡ãå·¡ã£ã¦ Capistrano ã£ã¦å®ã¯ deploy 以å¤ã«ãçµæ§ä½¿ããããããªãï¼ã¨æãã¾ãããã¨ããã話ãæ³å®ãã¦ãããã¼ã¸ã§ã³ã¯ Capistrano 2.5.3 ã§ãã ãªããä¾ã«ãã£ã¦å
Capistranoï¼ã«ãã¹ãã©ã¼ãï¼ã¯è¤æ°ã®ãªã¢ã¼ããµã¼ãã«SSHæ¥ç¶ãã¦ä¸æ¬æä½ã§ãã便å©ãªãã¼ã«ã§ãã è²ã ãªç¨éã«ä½¿ãã¾ãããä»åã¯Capistranoã§PHPããã¸ã§ã¯ãããããã¤ãã¦ã¿ã¾ããã æ¦è¦å³ Capistranoãã¤ã³ã¹ãã¼ã«ãããµã¼ãã¯ä¸å°ã ãã§ãã ãããã¤å ã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã§ã¯ãã°ã¤ã³ç¨ã¢ã«ã¦ã³ãï¼è¦sudo権éï¼ãäºåã«ä½æãã¦ããã¾ãã ã¤ã³ã¹ãã¼ã«ä¸ã®å³ã§ã¯Capistranoãã½ã¼ã¹ã³ã¼ã管çãµã¼ãã«ã¤ã³ã¹ãã¼ã«ãã¦ãã¾ãã Capistranoãåããã«ã¯Rubyãå¿ è¦ã«ãªãã¾ãã®ã§ãã¾ãã¯Rubyãã¤ã³ã¹ãã¼ã«ãã¾ãã ï¼Rubyã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯çç¥ãã¾ããï¼ æ¬¡ã«ã以ä¸ã®ã³ãã³ãã§Capistranoãã¤ã³ã¹ãã¼ã«ã $ sudo gem install capistrano 使ç¨æ¹æ³åºæ¬çã«capfileã«ä¸é£ã®æä½ãè¨è¿°ãããã¨ã¯ã³
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}