inohilog

/var/log/inohiro.log

RailsのデフォルトWebサーバがWebrickからMongrelになった?

Rails のデフォルトWebサーバがWebrickからMongrelに変更された?
バイト先の環境(Webサーバーの設定)がWebrickになってただけかな。今回は何でもないRails のプロジェクトを実行しただけなので。あとで調べよう。

133051081006:hello inohiro$ ruby script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.1.1 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready.  TERM => stop.  USR2 => restart.  INT => stop (no restart).
** Rails signals registered.  HUP => reload (without restart).  It might not work well.
** Mongrel 1.1.4 available at 0.0.0.0:3000
** Use CTRL-C to stop.
^C** INT signal received.
Exiting


Webrick を使うときは、Webrick って指定するようです。

133051081006:hello inohiro$ ruby script/server webrick
=> Booting WEBrick...
=> Rails 2.1.1 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2008-11-19 02:39:45] INFO  WEBrick 1.3.1
[2008-11-19 02:39:45] INFO  ruby 1.8.6 (2008-03-03) [universal-darwin9.0]
[2008-11-19 02:39:45] INFO  WEBrick::HTTPServer#start: pid=59975 port=3000
^C[2008-11-19 02:39:51] INFO  going to shutdown ...
[2008-11-19 02:39:51] INFO  WEBrick::HTTPServer#start done.

ちなみに

gemは直前にアップデートして、1.3.1。

133051081006:hello inohiro$ gem -v
1.3.1