Ebbは以前にも紹介しましたが (ポストMongrel時代のWebサーバ参照)、 Thinより高速といわれている軽量・高速なWebサーバです。
Ebb aims to be a small and fast web server specifical
ly 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 # gem install ebb
でインストールできます。 ただし、EbbはRuby拡張でglib2のヘッダファイルに依存しているため、 あらかじめそちらもインストールしておく必要があります。 以下はDebianの場合。
1 # apt-get install libglib2.0-dev
インストールが完了したら、RAILS_ROOT
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: developmen t) 7 -c, --chdir PATH Rails root dir 8 (default: current dir) 9 -d, --daemoniz e 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
posted by
genki
on Wed 5 Mar 2008
at 08:56