You're welcome.
Make sure the base directory(/var/www in your case) have the appropiate
permissions before running deploy:{check|setup|...}
cswebgrl wrote:
> Thanks Rafa.
>
> Can I implement this for the directories so that Capistrano won't give
> me permissions errors?
>
> When running deploy:check I get this error:
>
> The following dependencies failed. Please check them and try again:
>
> --> You do not have permissions to write to `/var/www/projectname'.
>
> Where in the process will chown be called to allow Cap to write to
> those directories?
>
> Thanks!!!
>
>
>
>
>
> On Jul 8, 10:29 am, "Rafael G." <[email protected]> wrote:
>
>> Hi cindy,
>>
>> You can solve it creating the files with your current user then do
>> a chown with sudo. Example:
>>
>> task :chown_file do
>> run "touch ~/file_foo.txt"
>> sudo "chown www-data:www-data file_foo.txt"
>> end
>>
>> Bye!
>>
> >
>
>
--
Rafa
--~--~---------~--~----~------------~-------~--~----~
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.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---