Probably a stupid question (enterprise deployment related)

All,

I’m obviously a newbie to JRuby :slight_smile:

I’m looking to develop a Ruby on Rails web application for a big
enterprise
company. From an “run the engine” / deployment perspective, they don’t
support Ruby and the Ruby on Rails stack. Like most big companies, they
do
support Java and .NET deployments and from a Java perspective they use
Tomcat (they do have a ton of Weblogic but are trying to move everything
towards Tomcat).

So, my understanding is that once everything is written, I can simple
use
Warbler to package everything up into a WAR file, give them the WAR file
and
it’s instantly deploy-able to their existing infrastructure/Tomcat
environments. They won’t need to do anything else like installing
JRuby.
Is that correct? That is, of course, assuming they have later versions
of
Tomcat (which they do).

On a side note… I was extremely impressed yesterday with the ease of
getting started with JRuby. A quick download/install, pointed RubyMine
to
JRuby and next thing I know I’m working easily. Copied over some
previous
RoR code and “it just worked”.

Thanks and sorry for the newbie question!

Andy

That’s correct.

I package my Rack and Rails apps into war files and deploy to Tomcat (on
a server that has no Jruby or ruby in general installed) and it “just
works”. It’s really great.

On Fri, Apr 29, 2011 at 9:01 AM, Jeffrey L. [email protected]
wrote:

I package my Rack and Rails apps into war files and deploy to Tomcat (on a
server that has no Jruby or ruby in general installed) and it “just works”.

Just out of curiousity – what do you do about running migrations? or
script/runner tasks, standalone or via cron jobs?


Hassan S. ------------------------ [email protected]
twitter: @hassan

Hi,

I’m trying to figure out how to run a ‘rails runner’-type task with a
.war-file deployment of a rails 3 app?

Perhaps something like this:

export RAILS_ENV=production
export
CLASSPATH=/opt/tomcat7/webapps/ROOT/WEB-INF/lib/jruby-core-1.6.3.jar:/opt/tomcat7/webapps/ROOT/WEB-INF/lib/jruby-rack-1.0.9.jar:/opt/tomcat7/webapps/ROOT/WEB-INF/lib/jruby-stdlib-1.6.3.jar
export GEM_PATH=/opt/tomcat7/webapps/ROOT/WEB-INF/gems
java org.jruby.Main -w -S rails runner “Nightly.run”

?

Thanks!

Brian


View this message in context:
http://old.nabble.com/Probably-a-stupid-question-(enterprise-deployment-related)-tp31506692p32628252.html
Sent from the JRuby - User mailing list archive at Nabble.com.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs