It's actually _because_ it created them with sudo that it cannot access them. I really hate deploy:setup, actually, because I don't know how to make it work as expected for the general case. Either you use sudo, and then manually set the permissions on the directories, or you don't use sudo, and make sure the parent directory has the necessary perms BEFORE you run the task...
At any rate, the fix is to manually correct the permissions. - Jamis On Fri, Feb 6, 2009 at 6:46 PM, Nick Hoffman <[email protected]> wrote: > > Hi guys. I'm using Capistrano for the first time, and am having some > trouble with deploy:check. I'm deploying to my own server, and want to > use sudo to write to /var/www/ . > > Executing deploy:setup goes smoothly. However, deploy:check fails with > this: > > The following dependencies failed. Please check them and try again: > --> You do not have permissions to write to `/var/www/submogrify'. > (submogrify.com) > --> You do not have permissions to write to `/var/www/submogrify/ > releases'. (submogrify.com) > > Considering that Capistrano created those directories with sudo, I > don't understand why it thinks it can't write to them. > > Here's a paste of deploy:setup , deploy:check , and deploy.rb: > http://gist.github.com/59723 > > Any thoughts? I'm all ears! > Nick > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
