# config.ru run Proc.new {|env| [200, {"Content-Type" => "text/html"}, "Hello Rack!"]} Under the hood, rackup converts your config script to an instance of Rack::Builder. What is Rack::Builder ? Rack::Builder implements a small DSL toiteratively construct Rack applications. - RackAPI Docs Rack::Builder is the thing that glues various Rack middlewares and applications together and convert them in
http://rack.rubyforge.org/ 先日登場した Rack というライブラリを使うと、Web サーバごとに同一のインターフェイスを利用できるようになります。通常、Ruby で Web アプリケーション を動作させるとき、cgi なのか、fcgi なのか、もしくは mongrel や webrick を使うのか、ということを考えなければなりません。cgi のみで動作決めうち、など良いのですが、ガワである Web アプリケーションフレームワークや一般に配布するアプリケーションなど、既存のフレームワークを用いずに作るときは、さまざまな動作環境でも動くように考慮しなくてはなりません。 たとえば既存のフレームワークであるRails や Camping はそれぞれ個別にcgi/fcgi/mongrel/webrick などの対応を行っています。しかし Rack で定義されているイ
Workers Workers are yourbuildingblocks of Asynchronous Task Processing. Anempty auto generated worker looks like this: class BillingWorker < BackgrounDRb::MetaWorker set_worker_name :billing_worker defcreate(args = nil) # method gets called, when new instance of worker iscreated. end end set_worker_name will set the worker name which can be later used while invoking tasks on the worker.cre
1リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く