第5å ã¿ã¼ã²ãããã¹ãã®æºå
2008/03/28
ä»åã®ãã¼ãã¯ããããã¤ã¡ã³ãå ã®ãµã¼ãã³ã³ãã¥ã¼ã¿ï¼ã¿ã¼ã²ãããã¹ãï¼ã®ã»ããã¢ããã
ãã¾ã«èª¤è§£ãã人ãããããã©ãã¿ã¼ã²ãããã¹ãã« Capistrano ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ã¯ãªããCapistrano ã¯ãããªãã®ä½¿ç¨ãã¦ãããã½ã³ã³ãã¤ã¾ããã¼ã«ã«ãã¹ãã§åãã¦ãRuby ã® Net::SSH ã¢ã¸ã¥ã¼ã«ã®æ©è½ã使ã£ã¦ãã¿ã¼ã²ãããã¹ãã«ãã°ã¤ã³ãã¦ãæ§ã ãªã³ãã³ããèªåçã«å®è¡ãããã¼ã«ã ã
ã§ã¯ãSSH ã§æ®éã«ã¿ã¼ã²ãããã¹ã(alpha.oiax.jp)ã«ãã°ã¤ã³ãã¦ãä½æ¥ãå§ãããã
ã¾ããRails ã¢ããªã±ã¼ã·ã§ã³ã®ç½®ãå ´æ /var/rails
ãã£ã¬ã¯ããªãä½æããã
$ sudo mkdir /var/rails $ sudo chown app:app /var/rails
ã¿ã¼ã²ãããã¹ããããã°ã¢ã¦ãããã
$ exit
deploy:setup ã¿ã¹ã¯ãå®è¡ãããï¼åºåã®ä¸é¨çç¥ï¼
% cap deploy:setup * executing `deploy:setup' * executing "umask 02 && mkdir -p /var/rails/ballad /var/rails/ballad/releases ... servers: ["alpha.oiax.jp"] [alpha.oiax.jp] executing command command finished
ãã®ã³ãã³ãã¯ãã¿ã¼ã²ãããã¹ãã«ãããã¤ã¡ã³ãå ãã£ã¬ã¯ããªãä½ããããã«ãã®ä¸ã«ãã©ã«ãããªã¼ãä½æãã¦ãããããã®ä½æ¥ã¯ãã¢ããªã±ã¼ã·ã§ã³ãã¨ã«ä¸åº¦ã ãè¡ãã°ããã
ã§ã¯ãã¿ã¼ã²ãããã¹ãã«ãã°ã¤ã³ãã¦ãfind
ã³ãã³ãã§ãã£ã¬ã¯ããªããªã¼ã表示ãã¦ãä»åã®ä½æ¥ã¯çµããã¨ãããã
$ find /var/rails /var/rails /var/rails/ballad /var/rails/ballad/shared /var/rails/ballad/shared/log /var/rails/ballad/shared/pids /var/rails/ballad/shared/system /var/rails/ballad/releases
[æ¹è¨] 2008/05/17 ã¢ããªã±ã¼ã·ã§ã³å®è¡å°ç¨ã¦ã¼ã¶ã¼ app ãä½æããè¨è¿°ãã第2å SSH å
¬ééµã®è¨ç½®ã«ç§»åã
[æ¹è¨] 2008/05/12 ã¢ããªã±ã¼ã·ã§ã³å®è¡å°ç¨ã¦ã¼ã¶ã¼ app ãä½ãããã«ããã