• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

Ebbは以前にも紹介しましたが
(ポストMongrel時代のWebサーバ参照)、
Thinより高速といわれている軽量・高速なWebサーバです。

[A Web Server Called Ebb

Ebb aims to be a small and fast web server specifically for hosting web frameworks like Rails, Merb, and in the future Django.

こちらでも紹介されています。

Ebb: C-Powered Web Server That Uses Rack - Faster than Mongrel and Thin

非常に興味深いですね。
ということで、ちょっと使ってみました。
先日からgemインストールできるようになったので、
いつものように

sh>>

gem install ebb

<<--

でインストールできます。
ただし、EbbはRuby拡張でglib2のヘッダファイルに依存しているため、
あらかじめそちらもインストールしておく必要があります。
以下はDebianの場合。

sh>>

apt-get install libglib2.0-dev

<<--

インストールが完了したら、RAILS_ROOTで以下のようなMongrel
ライクなコマンドを実行すると、Ebbが立ち上がります。

sh>>
% ebb_rails start
<<--

また、ebb_railsコマンドのオプションは以下の通り

pre>>
Usage: ebb_rails [options] start|stop

Server options:
-p, --port PORT use PORT (default: 3000)
-e, --env ENV Rails environment
(default: development)
-c, --chdir PATH Rails root dir
(default: current dir)
-d, --daemonize Daemonize
-l, --log-file FILE File to redirect output
-P, --pid-file FILE File to store PID
-t, --timeout SEC Request or command timeout in sec
(default: 60)

Common options:
-h, --help Show this message
-v, --version Show version
<<--

とりあえず、単純なアプリケーションでテストした限りでは、
問題なく動いている模様です。
楽しみなプロジェクトですね。

See Also

posted by genki genki on Wed 5 Mar 2008 at 08:56 with 0 comments