gm,
you can add to the shared_children variable, then run deploy setup... that
should work, something like
set (:shared_children, shared_children + %w(uploads avatars)
then re-run delpoy:setup
As for the "after()" call, you can simply do after("deploy:setup",
"my:task_here") -- where you specify what to do afterwards, I would
recommend adding to the shared children variable, for more info see ~line 54
of deploy.rb in the Capistrano gem, it reads:
_cset :shared_children, %w(system log pids)
-- Lee Hambley
Twitter: @leehambley
Blog: http://lee.hambley.name/
Working with Rails: http://is.gd/1s5W1
2009/8/26 gmoniey <[email protected]>
>
> I see...I would imagine there is a after "deploy:setup". Since I want
> to create a new subdir in the 'shared' dir.
>
> 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
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---