users@glassfish.java.net

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

From: Vivek Pandey <vivek.pandey_at_gmail.com>
Date: Sun, 28 Feb 2010 01:41:38 -0800

jruby.rackEnv is not exposed as system property. You can only use it as
deployment property, asadmin deploy --property jruby.rackEnv=production.

-vivek.
On Thu, Feb 25, 2010 at 4:27 PM, <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
>
>