On Thu, Sep 22, 2011 at 2:04 AM, puschkin <[email protected]> wrote:
> I already did some research for myself. I managed to deploy code from
> my SVN repository to a server and run my rails app using passenger.
>
> However, instead of running a rails app I need to deploy my
> application as a war file. The question is: how can I invoke warbler
> from Capistrano.

I deploy a JRuby/Rails app by using a standard Capistrano deploy
to create a conventional Rails directory (which I can use to run a
console, rake tasks, etc.) and then build up the WAR file from the
contents of that (warbler never really worked for us), e.g.

  run "mkdir #{deployment_dir}"
  run "mkdir #{deployment_dir}/WEB-INF"
  run "cp -rp #{current_release}/app #{deployment_dir}/WEB-INF"

and so on.

FWIW,
-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" 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/capistrano?hl=en

Reply via email to