Try the HOSTS environment variable:

  cap HOSTS=app2.example.com production deploy

Note that doing this will treat app2 as being in every role, not just
whichever role(s) it happens to be declared in.

If what you want is to do a regular deploy, but only act on app2, and
only as app2 is declared in your recipe file, you can use the HOSTFILTER
variable instead:

  cap HOSTFILTER=app2.example.com production deploy

Sorry if the distinction isn't clear there. Let me know if you need more
clarification as to the difference between HOSTS and HOSTFILTER.

- Jamis

On 1/21/09 9:54 AM, Pete Hodgson wrote:
> Hi Folks,
> 
> I have a system in production that has several servers in serveral
> 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.
> 
> I original posted this question on Stack Overflow a few days back [1]
> and got a few answers, but neither solution seemed to work for me.
> Hope it's not bad form to now post here.
> 
> Cheers,
> Pete
> 
> 
> 
> [1] 
> http://stackoverflow.com/questions/429816/how-to-deploy-to-a-single-specific-server-using-capistrano
> 
> > 


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