On Thu, Nov 26, 2009 at 11:33 AM, Conrad Taylor <
conr...@gmail.com> 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 ------------------------
hassan.s...@gmail.com
twitter: @hassan