Correct. File paths are relative to wherever SSH dropped you when you  
logged in (home directory).  I find it's typically best to specify  
absolute paths locally. When specifying files in relation to my  
deploy.rb file, it's usually something like:

File.join(File.dirname(__FILE__), "..", "path", "to", "file.ext"),  
which, assuming you were in /users/you/project/config/deploy.rb, would  
resolve to /users/you/project/config/../path/to/file.ext.



On Jun 24, 2008, at 11:39 AM, David Masover wrote:

>
> > > I'm guessing that when entirely relative paths are specified,  
> it's relative
> > > to the home directory?
>
> It seems to be relative to the directory cap is running in, but it may
> possibly be relative to the directory the capfile is in.  I haven't
> tried running a capfile in a different directory to test that.
>
> I meant the target. It seems like the default, server-side, would be  
> the user's home directory. I haven't tested, though.
>
> >


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to