users@glassfish.java.net

Re: Auto-refresh in code for deployed app (jruby)

From: Robert Weeks <RWeeks_at_ext-inc.com>
Date: Thu, 11 Mar 2010 08:41:35 -0800

On Mar 11, 2010, at 11:30 AM, Hassan Schroeder wrote:

On Thu, Mar 11, 2010 at 8:22 AM, Robert Weeks <RWeeks_at_ext-inc.com<mailto:RWeeks_at_ext-inc.com>> wrote:

Are you running in development mode?

hmmm - to be honest - I am not sure. :\ I assume you mean as -client? Or
setting the rails_env to development (--property jruby.rackEnv=development)?
If so on either -then yes. :)

Yes, Rails environment -- I haven't used that property, our application
sets the environment in web.xml. You didn't say how you're deploying
but is it possible you have a conflict there?

OK - great. Yes - currently I have deployed it as an exploded dir type - using 'asadmin deploy' on the directory of the app (it is a rails app). We plan on deployment as a war when ready - but for dev just doing it this way.

Such as: asadmin deploy --property jruby.rackEnv=development appname/

(within the directory that contains 'appname/'. I think development is set by default - but I do it here since the rails app also hits certain db's according to the rails_env).


Just throwing out ideas...

Sure - and thanks for throwing them out there! :)

--
Robert B. Weeks
rweeks_at_ext-inc.com<mailto:rweeks_at_ext-inc.com>