lighttpdを使ってみる
lighttpdをインストールした後(freebsdはports, fedoraはyumとかで)、ruby-fcgiのインストール。
% sudo portinstall www/ruby-fcgi
wget http://www.fastcgi.com/dist/fcgi.tar.gz ./configure make make install gem install fcgi cp -p dispatch.fcgi.example dispatch.fcgi
そしてscript/serverスクリプト経由で起動。
sudo script/server lighttpd Password: => Booting lighttpd (use 'script/server webrick' to force WEBrick) => Rails application starting on http://garlic.lan:3000 => Call with -d to detach => Ctrl-C to shutdown server (see config/lighttpd.conf for options)
root権限でないと怒られた。後で調査。
2007-07-23 00:33:38: (server.c.575) Are you nuts ? Don't apply a SUID bit to this binary Exiting
生成されたconfig/lighttpd.confを調整して、-dつけてdaemonっぽく起動。
sudo script/server lighttpd -d => Booting lighttpd (use 'script/server webrick' to force WEBrick) => Configuration in config/lighttpd.conf => Rails application starting on http://garlic.lan:3000