On Thu, Nov 26, 2009 at 11:33 AM, Conrad Taylor <[email protected]> wrote:

> Michael, why don't you simply use the glassfish gem for deployment?

It's not always suitable, especially if you have an existing Tomcat
installation with other non-JRuby apps.

> In any cade, if you're trying to update the schema on the production
> machine, the you can simply do the following:
>
> rake db:migrate RAILS_ENV=production

No, you can't; that's the whole point -- none of those rake tasks are
packaged with the WAR file.

The legacy app I inherited uses Capistrano to check out and deploy
a JRuby app in standard Rails format, which is useful for running
migrations, scripts via cron jobs, etc., and then builds and deploys
the WAR file from there.

It seems a little redundant, but it works :-)

FWIW,
-- 
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to