dev@glassfish.java.net

Re: Question about glassfish_rails gem

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Fri, 08 Aug 2008 16:18:32 -0700

Hi arash,

Rails is single threaded. The -n option allows multiple Rails requests
to be handled concurrently by spawning as many Rails runtime and keeping
them in the pool.

Specifying RAILS_ENV from CLI is a missing feature tracked at:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=4156

You can see several usages of Gem at:

http://blogs.sun.com/arungupta/tags/rubyonrails+gem

Thanks,
-Arun

. wrote:
> I'm a bit confused about the -n parameter...It seems that this launches
> 4 separate rails instances, I'm guessing this is used for load balancing?
>
> Which brings me to my next question, how can I specify that I want to
> deploy to a production environment? (i.e. have the logs updated rather
> than printing everything to the console). Currently it seems like things
> run pretty slow, and my guess is because the environment is set to dev
> (although I may be way off).
>
> Could someone shed some light on the different usages of the gem? thanks
>
> arash

-- 
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta