Posted by Shugo Maeda on 3 Mar 2008 Rubyã«æ¨æºã§æ·»ä»ããã¦ããWEBrickã©ã¤ãã©ãªã«ããã¦ã ãã®ã©ã¤ãã©ãªã«å«ã¾ãããã¼ã«ã«ãã¡ã¤ã«ã·ã¹ãã ä¸ã®ãã¡ã¤ã« (ããã³ãã£ã¬ã¯ããª)ãå ¬éããæ©è½ã使ç¨ããå ´åã«ãå ¬éãæ å³ãã¦ããªããªã½ã¼ã¹ã«ã¢ã¯ã»ã¹ãå¯è½ã¨ãªãåé¡ãçºè¦ããã¾ããã ç¹ã«ãWindowsã§ãã®æ©è½ãå©ç¨ããå ´åã«ã¯ããã£ã¬ã¯ããªãã© ãã¼ãµã«ã«ãããããã»ã¹ã®æ¨©éã§èªã¿åãå¯è½ãªä»»æã®ãã¡ã¤ã« ã«å¯¾ããã¢ã¯ã»ã¹ãå¯è½ã¨ãªãã¾ãã å½±é¿ ãã®èå¼±æ§ã¯ä»¥ä¸ã®ç¶æ³ã§çºçãã¾ãã WEBrick::HTTPServer.newã®å¼æ°ã¨ãã¦ã :DocumentRootãæå®ãã¦ãã¡ã¤ã«ãå ¬éããå ´å WEBrick::HTTPServlet::FileHandlerãµã¼ãã¬ããã å©ç¨ãã¦ãã¡ã¤ã«ãå ¬éããå ´å ãã®èå¼±æ§ã¯ä»¥ä¸ã®ç°å¢ã§
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}