Ebbは以前にも紹介しましたが
(ポストMongrel時代のWebサーバ参照)、
Thinより高速といわれている軽量・高速なWebサーバです。
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インストールできるようになったので、
いつものように
1
でインストールできます。
ただし、EbbはRuby拡張でglib2のヘッダファイルに依存しているため、
あらかじめそちらもインストールしておく必要があります。
以下はDebianの場合。
1
インストールが完了したら、RAILS_ROOTで以下のようなMongrel
ライクなコマンドを実行すると、Ebbが立ち上がります。
1 % ebb_rails start
また、ebb_rails
コマンドのオプションは以下の通り
1 Usage: ebb_rails [options] start|stop
2
3 Server options:
4 -p, --port PORT use PORT (default: 3000)
5 -e, --env ENV Rails environment
6 (default: development)
7 -c, --chdir PATH Rails root dir
8 (default: current dir)
9 -d, --daemonize Daemonize
10 -l, --log-file FILE File to redirect output
11 -P, --pid-file FILE File to store PID
12 -t, --timeout SEC Request or command timeout in sec
13 (default: 60)
14
15 Common options:
16 -h, --help Show this message
17 -v, --version Show version
とりあえず、単純なアプリケーションでテストした限りでは、
問題なく動いている模様です。
楽しみなプロジェクトですね。
See Also