ROLES probably doesn't do what you think it does; look at the docs for ROLE(S)FILTER as well.
I've never found either to be useful so I avoid them like the plague. Instead I build custom roles. I define stages in tasks and use the server helper instead of the role helper. On Dec 4, 2012, at 3:15 PM, Jonathan Rochkind <[email protected]> wrote: > Huh, actually, it looks like this IS working as expected normally... > > Where it broke is when I ran: > > `cap ROLES=indexer_jobs deploy` > > Somehow when you tell it to only run on servers with listed role... THEN it > messes up and runs tasks that don't apply to that role on those servers too? > Maybe? Ring a bell for anyone? Is this a bug? > > On 12/4/2012 6:13 PM, Jonathan Rochkind wrote: >> My cap recipe for a Rails app has just grown to more than one server; >> >> I now have a server where the source is installed (in order to then set >> some rake cronjobs on that server), but it's not actually an app/web >> server. >> >> So I don't want asset precompile to run there. >> >> But asset precompile seems to be running there anyway. Looking at the >> actual code at: >> https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy/assets.rb >> >> >> I'm not sure why... it looks like it should only run the >> assets:precompile task on servers with role `assets_role`, which >> defaults to `web`. >> >> This server does not have the role 'web', in fact it only has one role, >> one custom one I made up ("indexer_jobs")... but the assets:precompile >> task seems to be triggered there anyway. >> >> Anyone have any clues what might be going on, or suggestions for how I >> can get to the bottom of this? >> > > -- > * 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.com/group/capistrano?hl=en -- * 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.com/group/capistrano?hl=en
