appengine-jrubyã§ããã£ãã¡ã¢
GoogleAppEngine + JRubyã§ã¯ãªã¹ãã¹ã¾ã§ã«å½¼å¥³ãã¤ããæ¹æ³ : tech.kayac.com - KAYAC engineers' blog
ãã
appengine-jrubyã§ç°¡åGAE/JRubyéçº - ãã°ãããã¼ã
ãªã©ãã¿ã¦ãappengine-jruby楽ãããã ãªã¼ã¨æã£ã¦ä½¿ãå§ããã®ã ã2ç¹ã¯ã¾ã£ãã
1ç¹ç®
æºåã¨ã㦠google-appengine ã¨ããååã® gem ã sudo ã¤ã³ã¹ãã¼ã«ããã
sudo gem install google-appengine
ãããªæããã ããä½æ ãã¤ã³ã¹ãã¼ã«ãããã©ã¤ãã©ãªã®æ¨©éã 700 ãªã©ã«ãªã£ã¦ãã¦ä¸è¬ã¦ã¼ã¶ã¼ã§ããã¯ä½¿ããªãã
su権éã§ãªãã¡ããã¨ä½¿ããã®ã ãããããæ°æã¡æªãã®ã§ã
$ /usr/lib/ruby/gems/1.8/gems/appengine-*/lib/*
以ä¸ã®æ¨©éã 644 ã¨ãã«å¤ããã¨ããæãã«åãã
2ç¹ç®
appengine-jruby ã®éçºç¨ãµã¼ãã¼ãã
$ dev_appserver.rb .
ã§ãport 8080 ã§èµ·åããã®ã ãã localhost ããããç¹ãããªãä»æ§ãããããªã®ã§ vmware server ãªã©ã§èµ·åãã¦ããã¨ãã¹ãOSã®ãã©ã¦ã¶ããæ¥ç¶ã§ããªãããªã®ã§ãsshã®ãã¼ããã©ã¯ã¼ããªã©ã§å¯¾å¿ããã¨è¯ãã
$ dev_appserver.rb --adress=0.0.0.0 .
ã¨ãã¦èµ·åããã¨ãã©ãããã§ãå ¥ããã£ã½ãã adress ã®å¤ã¯ãã¹ã¯ããªã»ã»ã»
ãã®ãããªãã¤ã³ãã®åå ã OSä¾åã®ãã®ãã¨æã£ã¦ãcentos 5.2 ã¨ã ubuntuã¨ããããã試ãã¦ãã¾ã£ãããã¨ããããæå ã® CentOS 5.2 ã§ãã¾ãåãã¦ããã