users@glassfish.java.net

Re: jruby.rackEnv JVM option is not working for me...

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Fri, 26 Feb 2010 11:03:18 -0800

Have you tried -J-Djruby.rackEnv as that will pass the option to JRuby ?

-Arun

glassfish_at_javadesktop.org wrote:
> Hi,
>
> I'm running Redmine on Glassfish v3 and I'm trying to use two JVM options:
>
> -Djruby.home=/path/to/jruby/home
> -Djruby.rackEnv=production
>
> The first one works, but the -Djruby.rackEnv=production property is ignored. The application always tries to start using the 'development' rails environment. Newer documentation suggests deploying with:
>
> --property jruby.rackEnv=production
>
> ...but using a JVM option should have the same effect, right? Everything works fine if I export RAILS_ENV=production before starting Glassfish.
>
> Any ideas?
> [Message sent by forum member 'jptech' (ryan_at_jptech.ca)]
>
> http://forums.java.net/jive/thread.jspa?messageID=388831
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

-- 
Need Application Server ? Download from http://glassfish.org
Blog: http://blogs.sun.com/arungupta