61
I have a system in production that has several servers in several roles. I would like to test a new app server by deploying to that specific server, without having to redeploy to every server in production. Is there a way to ask Capistrano to deploy to a specific server? Ideally I'd like to be able to run something like
cap SERVER=app2.example.com ROLE=app production deploy
if I just wanted to deploy to app2.example.com.
Thanks!
[update] I tried the solution suggested by wulong by executing:
cap HOSTS=app2.server.hostname ROLE=app qa deploy
but capistrano seemed be trying to execute tasks for other roles on that server in addition to app tasks. Maybe I need to update my version of cap (I'm running v2.2.0)?