The first solution that comes to my mind is to use the Capistrano Multistage extension. http://github.com/jamis/capistrano-ext/tree/master
I'm using this extension to configure multiple environments (and consequently capistrano deployments) on the same server. You can create two stages, one for each directory. * first * second For each stage you might want to configure the following variables: set :version_dir, "releases" set :current_dir, "current" set :deploy_to, "/var/www/apps/..." Then, you'll deploy with $ cap first deploy && cap second deploy Or you can easily create a custom additional task to run both commands in a single click. Simone -- http://www.simonecarletti.com On Fri, Mar 27, 2009 at 5:05 AM, eric <[email protected]> wrote: > > Hello all, > > I have a question about something that seemingly should be simple, but > I can't find an elegant solution to the problem. > > I have a directory structure that looks like > > Capfile > rails/ > ahn_app/ > > Inside the rails directory is a rails app, with a config/deploy.rb > (that works). Inside the ahn_app directory is an adhearsion app, with > a config/deploy.rb (that works). > > Now, you can probably guess what I want. I want to type cap deploy, > and have my Capfile execute "rails/config/deploy.rb" and then "ahn_app/ > config/deploy.rb" in succession, so I only have to type cap deploy > once. > > Is this possible? > > Thanks! > > -Eric > > > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
