A presentation on Shanghai on Rails, March 14 2009, includes rack middelware introduction, one-file application using sinatra and sequel, and sinatra program running under Rails Metal.Read less
ã©ãããUnicornã¨ããã®ãè¯ããããã¨ããåãèãã¤ããã®ã§ãã©ããªãããããã¨è©¦ãã¦ã¿ããã¨ã«ããã Route 477 - 大è¦æ¨¡Railsãµã¤ãã®ããã®æ°ããHTTPãµã¼ããUnicorn Unicornã¦ã®ã¯ä½è ãªã®ãã¨è¨ãã¨ãRackåã³Railsã«å¯¾å¿ããRubyã®Webã¢ããªç¨ã®HTTPãµã¼ãã詳ããã¯ä¸ã®è¨äºãèªãã§ä¸ãããgithubã§ã使ã£ã¦ãããã ããã¨ãååãæ ¼å¥½è¯ãï¼ããã¾ãé¢ä¿ãªãï¼ã ã¾ãã¯unicornã®è¨å® ã¨è¨ã£ã¦ããgem install unicornãã¦config.ruããããã£ã¬ã¯ããªã§unicornã³ãã³ããå©ãã°ãthinã¨ãã¨åãããã«ãµã¼ããèµ·åãããrackupäºæã®ãªãã·ã§ã³ãä»ãã¦ãã®ã§ç¹ã«æ©ããã¨ããªãã¨æãããã¨ã¯æ®éã«Apacheã¨ãã§ãããã·ã®è¨å®ãã¦ãããªããªããªãããã°ãã使ããã ããã ãã ã¨å¤§ãã¦é¢ç½ããªãã®
ååã®è¨äºã§ã¯ãRackã¨ã¯ä½ãã«ã¤ãã¦ããRackãçã¾ããèæ¯ã交ãã¦ãç´¹ä»ãã¾ãããä»åã¯ãRackãå®éã«ä½¿ã£ã¦ã¿ãã«ã¯ã©ãããã°ããã®ããå®éã«ä½ããªãã解説ãã¾ãã rackupã¨Rack::Builder ååã®è¨äºã®æå¾ã§ãã¢ããªã±ã¼ã·ã§ã³ã®ä»ã«config.ruã¨ãããã¡ã¤ã«ãç¨æããrackupã¨ããããã³ãã³ãã使ã£ã¦ã¢ããªã±ã¼ã·ã§ã³ãèµ·åãã¾ããããããã«ã¤ãã¦ããå°ã詳ãã説æãããã¨æãã¾ãã å®ã¯ãåã«Rackã¢ããªã±ã¼ã·ã§ã³ãèµ·åããããã ãã§ããã°ãconfig.ruï¼rackupãã¡ã¤ã«ã¨å¼ã³ã¾ããæ¡å¼µåã®ruã¯ããããrackupã®ç¥ã§ãããï¼ã¯å¿ è¦ããã¾ãããRackã®å ¥éè¨äºçã§ç®ã«ãããã¨ã®ããæ¹ãããããããã¾ãããã以ä¸ã®ãããªã³ã¼ãããã¡ã¤ã«ã®æ«å°¾ã«æ¸ãå ããã¨simple_app.rbåä½ã§ã¢ããªã±ã¼ã·ã§ã³ãèµ·åãããã¨ãã§ãã¾ãã if
ã¯ããã« SinatraãRamazeã¨ãã£ãRubyã®Webã¢ãã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã«èå³ããæã¡ã®æ¹ã§ããã°ãRackã¨ããååããã°ãã°ç®ã«ãã¦ããããããã¾ãããã©ãããæ§ã ãªãã¬ã¼ã ã¯ã¼ã¯ã«ä½¿ããã¦ãããããã®ã ãã©ãããã¤ãä¸ä½ãªããªã®ãããããããªãããããªããªãã®ããã«ä»æ¥ã¯ãã®Rackããç´¹ä»ãããã¨æãã¾ãã æ§ã ãªãã¬ã¼ã ã¯ã¼ã¯ãæ§ã ãªã¢ããªã±ã¼ã·ã§ã³ãµã¼ã ãã°ããåãªããRuby on Railsãã¼ã ã®çã£åªä¸ãRubyã¨è¨ãã°RailsãWebã¢ããªã±ã¼ã·ã§ã³ãä½ããªãRailsãã¨ãã£ãã¤ã¡ã¼ã¸ãæããã¦ããæ¹ãå¤ãã£ãã¨æãã¾ããå®éã«Webã¢ããªã±ã¼ã·ã§ã³ãä½ã£ãããRubyã«è§¦ããããããã£ãããRailsã ã£ãã¨ããæ¹ãå¤ãã§ãããã ãããæè¿ã¯ãRubyã®Webã¢ãã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã¨ä¸å£ã«è¨ã£ã¦ããé常ã«ç°¡åã«ã¢ããªã±ã¼ã·ã§ã³ãæ¸ãã¦
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. If you've worked with Web apps using Ruby, you might know of Rack, an interface that sits between Ruby applications and HTTP-speaking Web servers. All of the major Ruby frameworks and server setups use it now, including Rails. Middleware (in Rack) is code that manipulates data going back and forth between your Ruby apps an
Over the weekend, I spent some time working on a Ruby + Rack +CouchDB project. Three technologies that I know quite well but that I never put to work together at the same time, at least not directly. Letâs call this Part I. Before we get started, let me introduce each component: Ruby : if you are reading this blog, you more than likely know at least a little bit about, what I consider, one of the
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. François Vaux has recently published a Ruby module called Rackable which allows you to make any Ruby object Rack-friendly, providing it with a REST-like interface. What does this mean? Well, a Rack application is essentially a Ruby object that responds to call(). Rackable just gives your object a call method which uses the
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}