:after_setup looks like a custom task

But he is correct you can do

after "deploy:setup", :sometask

just as well

And now that gmoniey said that the dirs he's concerned with are in the  
shared directories the :shared_children array is perfect, I had  
forgotten about that.

On Aug 26, 2009, at 2:13 AM, "Ionut G. Stan" <[email protected]>  
wrote:

>
> On 8/26/2009 09:27, gmoniey wrote:
>> I see...I would imagine there is a after "deploy:setup". Since I want
>> to create a new subdir in the 'shared' dir.
>>
>
> There is an :after_setup task. This is what I used. But there is  
> also a
> simple configuration variable
> that can be used in simple cases:
>
> # this is the default case, customize as you want
> # values like "dir/subdir" are allowed
> set :shared_children,   %w(system log pids)
>
>> Thanks.
>>
>> On Aug 25, 7:00 pm, Donovan Bray<[email protected]>  wrote:
>>
>>> before "deploy:setup", :custom_dirs
>>>
>>> task :custom_dirs, :roles =>  :app do
>>>    run "mkdir -p /dir1 /dir2"
>>> end
>>>
>>> This assumes you wanted to create dir 1&  2 off of the root and only
>>> on the app role.
>>>
>>> On Aug 25, 2009, at 4:16 PM, gmoniey<[email protected]>  wrote:
>>>
>>>
>>>
>>>
>>>> I want to create a couple of additional directories when  
>>>> deploy:setup
>>>> is executed. Unfortunately, I'm not quite sure how to do that.
>>>>
>>>
>>>> Can someone point me in the right direction?
>>>>
>>>
>>>> Thanks
>>>>
>>>
>>
>>
>
> -- 
> Ionut G. Stan
> I'm under construction  |  http://blog.igstan.ro/
>
>
> >

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to