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