主å¬è ã®@chezouããã«ããã°ãæ¸ãã¾ã§ãåå¼·ä¼ã§ãããåå ã¬ãããããï¼ã¨è¨ãããã®ã§ï¼
ä»æã¯çµå©è¨å¿µæ¥ã®ããYokohama.rbè¡ããªãã¦ãShibuya.rbã社ç¨ã®ããè¡ãç¡ãããã ã£ãããKawasaki.rbã«ã¨ã³ããªãã¦ã¿ã¾ãããï¼ã¡ãªã¿ã«ãã®ãã¨Shibuya.rbã«ã¯è¡ãã¾ããï¼
å ´æã¨ã
å·å´é§ ããæ¿è¿ã®ãã¥ã¼ã¶å·å´ã«ãªãã¾ãã ãã¥ã¼ã¶ã¨ããã¨ã³ã³ãµã¼ããã¼ã«ãããããç¥ããªãã£ããã§ããããªãã£ã¹ãã«ããããã§ããã
ç¥å¥å·Rubyä¼è°ãè¡ãããå ´æã¨åããNTT-ATããã®ãªãã£ã¹ã«ãªãã¾ãã
åºãç©ã¨ã
以åãã@chezouããã«èãã¦ããã¨ããããã¼ãã§ã¯ãRubyã®èªæ¸ä¼ããã¦ããã®ãã¨çºè¡¨ããã人ã¯çºè¡¨ã¨ããå½¢ã§ãããYokohama.rbã¨ä¼¼ã¦ãæãã§ããã
ä»åã¯ãã¼ã¯ã¼ãå¼æ°ã®è©±ã§ãèªåãæ¥åã§ããªããªä½¿ã£ã¦ããã¤ã ã£ãã®ã§çãã¦è¡ãã¾ããï¼ é¢ç½ãã£ãã®ãããã¼ã¯ã¼ãå¼æ°ã«ã¯äºç´èªã渡ããã¨ãã§ãã¾ããã§ãäºç´èªã«å ¥ãããã®ã¯æ®éã«ã¯å¼ã³åºããªãã®ã§ã
def bar(true: ) p true p binding.local_variable_get(:true) end bar(true: false)
ãå®è¡ããã¨ã
true false
ã¨ãªãã¾ãã使ããªãã§ããã©é¢ç½ãæåã§ããã
çºè¡¨ã¨ã
æ¨æ¥ããã°ã«æ¸ãããã®äºæ¡
Pumaã§ActiveRecordã®Errorãåºã¦ããã£ã話 - æææ¥ã¾ã§ã«èãã¦ããã¾ã
ã®è©±ãã¾ããã
Puma or Unicornçãªè©±ãªããåãæ¥ã«ãwillnetãããæ¸ãã¦ã
æè¿ã® Rack ãµã¼ãäºæ ã«ã¤ã㦠- willnet.in
ãã¨ã¦ãåèã«ãªãã¨ãã話ããã¦ãã¾ããã
æ®éã®Webãµã¼ããªãUnicornã§ãããã§ããï¼ã£ã¦è©±ããã¦ãç·(External Web)ã«éï¼Ruby èªåã®æ¸ããã³ã¼ãï¼ãå§åçã«æ¼ãã¤ã¶ããã¦ããNewRelicã®ã°ã©ããã¡ãè¦ããã¦ãã¾ããã
ä¸å¿ãããã°ã«æ¸ãã対å¿ã§å®å®ããã®ã§ãããä»åº¦ã¯MySQLã®MaxConnectionã«å±ããããªã¬ãã«ã§poolãè²¼ãããã®ã§ããã¾ãè¯ããªãæãã¦ãã¾ããæ®éã«AWSãé¡ä¼¼ãµã¼ãã¹ãèªç¤¾ãµã¼ããªã©ã§éç¨ãã¦ããRailsã§ããã°ãNginxãã¾ãã¦Unicorn使ãã®ã大å®çã ã¨æãã¾ãã
ãã®ä»
åè·é¢ä¿è ã®äººã«ä¼ã£ãããã¦ãå°åãå¤ããã¨æ¥ã¦ã人ãå¤ãã£ã¦é¢ç½ããªãã¨æãã¾ããã ã¾ãè¡ã£ã¦ã¿ããã¨æãã¾ãã