[Rails] "script/server -e production" doesn't work
Craig White
craigwhite at azapple.com
Tue Apr 4 18:22:30 GMT 2006
On Tue, 2006-04-04 at 19:16 +0100, Dave Silvester wrote:
> I've got an error that's only happening on my live webserver, so wanted to
> test on my local machine in the production environment.
>
> On my local machine, I tried to run...
>
> script/server -e production
>
> ... but get: server: invalid option: -e
>
> Has this been disabled or renamed in 1.1?
>
> I'm running gem Rails 1.1, Ruby 1.8.4, and the server is Lighttpd 1.3.16.
----
try launching with
ruby script/server -e production
but note, you can only have one server for each port so if you have
production running already on default port, it won't work. But
ruby script/server -e production -p 3100
should work (of course, users wanting to connect to 'production' would
have to use things like localhost:3100)
Craig
More information about the Rails
mailing list