Hi, I’m receiving the followig error message when I try to start
WEBBrick and it exists immediately:
$ ruby script/server
=> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)
=> Rails application started on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)
Undefined config variable: var.CWD
2006-04-13 01:30:33: (configfile.c.800) source: config/lighttpd.conf
line: 10 pos: 43 parser failed somehow near here: +
Exiting
Thus, if anyone has any ideas as to how to resolve this issue, it
would be GREATLY appreciated.
Thus, if anyone has any ideas as to how to resolve this issue, it
would be GREATLY appreciated.
First off, you’re not using WEBrick. You can trigger it with
“script/server webrick” as opposed to just “script/server”. The server
script switches to LightTPD if it’s on your $PATH, unless you tell it
otherwise. Secondly, I presume you’re using an old version of
LightTPD… If you want to use it, you’ll either need to fix the paths
in config/lighttpd.conf to be absolute, or upgrade to a recent version
that provides the CWD variable. I think that’s anything > 1.4.10 - just
go for the latest.