Use File.dirname(__FILE__) + "/../" inside script/spin to get the directory above script.
Sean Cribbs Jon Garvin wrote: > I'm in the process of converting our cap deployments from 1.4.1 to 2.0. > Our application runs on several different domains for different clients, > all on the same server but each with their own mongrels, ports, etc. > With 1.4 we accomplished this with custom deploy recipes that took a > command line argument to define which directory on the server to deploy > to and which mongrels to restart. My goal with 2.0 is to work WITH > Capistrano more than against it, i.e. make use of script/spin, etc. > > Looking at the Capistrano source, there doesn't appear to be a way to > pass arguments through to script/spin, and I'm having some trouble > getting the spin script to figure out the full path that it's located in > (which it could use to figure out which mongrels it needs to start, etc). > > Anybody got any other ideas? > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
