ramazeã®åå¼·ãå§ãã¦ã¿ã
ã¤ã³ã¿ã¼ã³å ã®æ¹ã«ãramazeããããããã¨è¨ãããã®ã§ramazeãåå¼·ãã¦ã¿ããã¨ã«ããã
å°å ¥ç·¨ã¿ãããªã
ramazeã£ã¦ã®ã¯Rubyã®ãã¬ã¼ã ã¯ã¼ã¯ã®1ã¤ã§ããRailsã¨ååã¨ãããã¨ã
Railsã«æ¼ããã¦ããã©ããæ軽ãªã®ãããã¨ããã¿ããã§ããã
ã¡ãªã¿ã«ç§ã¯äººçã§ä¸åº¦ããã¬ã¼ã ã¯ã¼ã¯ã¨ãããã®ã使ã£ããã¨ãããã¾ãããLL Futureã§ãã¤ãã¦ããã¾ããã§ããã
ç°å¢
Ubuntu 8.04 LTSã§ãã
ã¤ã³ã¹ãã¼ã«
ã©ããã
$ sudo gem install ramaze
ã§ããããã§ãã
ç§ã¯æå失æããã®ã§ããããã°ãããã¦ããããä¸åº¦è©¦ããããã¾ãããã¾ãããè¬ã§ãã
ã§ãramazeã³ãã³ãã«PATHãéãå¿ è¦ãããããã§ãããããããèªåã§ãã£ã¦ããã¦ãããã°ãããã§ããã»ã»ã»
export PATH=$PATH:/var/lib/gems/1.8/bin/
ã§ãããç°å¢ã«ãã£ã¦ã¯éãããã§ããã
ç°¡åã«å§ãã
ã©ãããApacheã¨ããèµ·åãã¦ããå¿
è¦ã¯ãªãããã§ãã
é©å½ãªä½æ¥ãã£ã¬ã¯ããªã«ç§»åãã¦ããã¦
$ ramaze --create hoge
ãªã©ã¨ããã¨hoge/以ä¸ã«é©å½ã«ãã¡ã¤ã«ãä½ã£ã¦ããã¾ãã
$ cd hoge
$ ruby start.rb
ã¨ããã¨ramazeã稼åããããã§ãã
ã¢ã¯ã»ã¹ããããã«ã¯
http://localhost:7000/
ãå©ããåæè¨å®ã§ãã¼ãçªå·7000ãæå®ããã¦ãã¾ããå¤æ´ã¯main.rbã®æå¾ã§
Ramaze.start ã»ã»ã» :port => 7000
ã¨ããã¨ãããå¤æ´ããã°ããã§ãã
ãã¡ã¤ã«ç·¨éã«ã¤ãã¦
ramazeã¯ãã¡ã¤ã«ã®å¤æ´ãèªåã§æ¤åºãã¦ãªãã¼ããã¦ããã¾ãã
ãããã£ã¦ãã¡ã¤ã«ãæ¸ãæããããã«rubyããã»ã¹ã殺ãã¦ãä¿åãã¦ãåèµ·åãªãã¦ããç¡é§ãªé¢åãªããã»ã¹ãè¸ãå¿
è¦ãããã¾ããã