ãããã®VPSã§ãµããã¡ã¤ã³ãä½ã£ã¦ã¿ã
ãããã®VPSã§ãRuby on Railsã¢ããªã®ããã®ãµããã¡ã¤ã³ãä½ã£ãã以ä¸ããã®ããã®è¨å®ã®è¦ãæ¸ãã
Ruby on Railsã¢ããªã®åä½ç°å¢ãPhusion Passengerã§ä½æ
さくらのVPSをお試しで使い始めた - NAT’s Programming Champloo
Ruby on Railsã®ã¢ããªãPhusion Passengerã使ã£ã¦ãããã¤ããç°å¢ã¯æ§ç¯æ¸ã¿ãªã®ã§ãããã使ããã¨ã«ã
Apacheã®VirtualHostã§ãµããã¡ã¤ã³ãä½æ
http://www.modrails.com/documentation/Users%20guide%20Apache.html#_deploying_to_a_virtual_host_8217_s_root
è¨å®ã¯ãPhusion Passengerã®ããã¥ã¢ã«éãã«æå®ãsub URIã使ãã¨ãã®è¨å®ã¨å¾®å¦ã«éãã®ã§ãsub URIã®ã¨ãã®è¨å®ãã³ããããã ãã§ã¯åããã¡ãã£ã¨æéåã£ãã横çãããããã¥ã¢ã«éãã«æ¸ãç´ãã°åé¡ãªãåããã
ãããã¤ã³ã¿ã¼ãããã®ãã¼ã ãµã¼ãã®ã¾ã¼ã³è¨å®ã®å¤æ´
ãã¡ã¤ã³ã¯ããããã®ãã¡ã¤ã³åå¾ãµã¼ãã¹ã§åå¾ããç©ãå©ç¨ãåããããã®ãµã¼ãã¹ã ããè¨å®ã¯ç°¡åã¨æãããããããã®VPSã§ä½¿ãããã®æ
å ±ãè¦ã¤ããããã¡ãã£ã¨æéåã£ãã
ãä¼å¡ã¡ãã¥ã¼ > ãã¡ã¤ã³ > ãã¼ã ãµã¼ãã¡ãã¥ã¼ãã§ã¾ã¼ã³è¨å®ãä¸è¨ã®ããã«è¨å®ããã
ã¨ã³ããªå | ã¿ã¤ã | ãã¼ã¿ |
---|---|---|
@ | A | xx.xx.xx.xx |
www | A | xx.xx.xx.xx |
<ãµããã¡ã¤ã³> | CNAME | www |
xx.xx.xx.xxã¯ããããã®VPSã§å¥ç´ãããµã¼ãã®IPã¢ãã¬ã¹ããã®è¨å®ã§ã<ãµããã¡ã¤ã³>.<ãã¡ã¤ã³> ã®ãã¡ã¤ã³ã«IPã¢ãã¬ã¹ xx.xx.xx.xx ãå²ãå½ã¦ãããã
ãµããã¡ã¤ã³ã®è¨å®ãåæ ãããã®ãå¾ ã¤
è¨å®ãããµããã¡ã¤ã³ã«èªå®
ããã¢ã¯ã»ã¹ã§ããããã«ãªãã¾ã§ããããï¼æéãããã¯ããã£ãã
ãããã®VPSã§å¥ç´ãããµã¼ãã¯ããã¼ã ãµã¼ãã«ãããã®ãã¼ã ãµã¼ãã使ã£ã¦ããã®ã§ãããã«ãµããã¡ã¤ã³ã§ã¢ã¯ã»ã¹ã§ãããèªå®
ããã¢ã¯ã»ã¹ã§ããã¾ã§ã¯ããã®ãµã¼ãã«ãªã¢ã¼ããã°ã¤ã³ãã¦ãwgetã³ãã³ãã使ã£ãããã¦åä½ç¢ºèªããã