Ladislav,

 Just a thought, but where you call "after "deploy:update_code",
:clear_cache" inheriting the run level of your deploy_update code task when
called in deploy:update code.. when you call it manually, it is fine. but
when it's nested, it isn't?

-- Lee

2008/10/30 Ladislav Martincik <[EMAIL PROTECTED]>

> Hi,
>
> I'm having problems with specifying role and than running it on particular
> task.
> I have specified roles like this:
>
> role :app, [aeryn.example.com, chiana.example.com]
> role :db, aeryn.example.com
> role :memcached_servers, keiko.example.com
>
> Here's task I'm using to run for memcached_servers:
>
> task :clear_cache, :roles => :memcached_servers do
>   run "#{shared_path}/scripts/clear_cache.sh"
> end
> after "deploy:update_code", :clear_cache
>
> The problem I have is that when I run:
>
> cap clear_cache
>
> ... the task is running on [aeryn, keiko] and should be running only on
> [keiko]?
> I don't know why but aeryn is always included.
>
> My setup is:
> GEMs:
> capistrano 2.5.0
> capistrano-ext 1.2.1
>
> Servers:
> Ubuntu 7.10
>
> My personal computer:
> Mac Intel, OS X
>
> Thank you for help.
>
> Ladislav
>
> >
>

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