default tasks and roles

62 views
Skip to first unread message

did

unread,
Jul 26, 2007, 6:53:15 PM7/26/07
to Capistrano
hi guys,

I read a lot of posts today and I've not found any correct answers to
my problem. I don't figure out why we can't assign a specific role to
the default deploy tasks (update_code for instance).
Let's take my current configuration (imposed by my clients), I've 3
servers (2 frontends and 1 db with nfs). The 2 frontends access the
application thru nfs. So, technically, I don't need to deploy my
application on the 2 frontends. What I'd like to do would be something
like that:
"> cap deploy" will only use the db ip address (by using the
roles :app or :db since they have the same IP address).
"> cap deploy:restart" will use the 2 frontend ips (role :web) =>
start mongrel_cluster and pound.

Instead of this, my "cap deploy" is trying to run the update_code task
for all the roles. The only work-around I found is to add an condition
based on a command argument (-s target=...) to select the roles.
Pretty ugly.
Any thoughts ?

Except that, Capistrano is really powerful (thank you so much for this
tool) !


Did

Reply all
Reply to author
Forward
0 new messages