# Can I set up multiple deploy targets with Capistrano?

**URL:** <https://www.ruby-forum.com/t/can-i-set-up-multiple-deploy-targets-with-capistrano/77748>\
**Category:** Rails\
**Created:** [March 7, 2006, 10:54am UTC](https://www.ruby-forum.com/t/can-i-set-up-multiple-deploy-targets-with-capistrano/77748 "2006-03-07T10:54:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [March 7, 2006, 10:54am UTC](https://www.ruby-forum.com/t/can-i-set-up-multiple-deploy-targets-with-capistrano/77748/1 "2006-03-07T10:54:21Z")

</div>

I have two servers up, one will be used for production, one for  
testing stuff. I’d like to set things up so I can upgrade each one  
independently. So I could type  
$ rake deploy

That will update the test server. I do that, test it for a few  
minutes/hours/days whatever, then I can put it onto the main server:  
$ rake deploy\_production

Is this possible? If so, how can I do it?

Pat

---

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [March 7, 2006, 1:17pm UTC](https://www.ruby-forum.com/t/can-i-set-up-multiple-deploy-targets-with-capistrano/77748/2 "2006-03-07T13:17:15Z")

</div>

Some ppl has already done this…

Search the archives…

Capistrano doesnt support this out of the box (gem), so you need to do  
some code yourself

On Tuesday, March 07, 2006, at 2:53 AM, Pat M. wrote:

> Pat
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Mikkel B.

www.strongside.dk - Football Portal(DK)  
[nflfeed.helenius.org](http://nflfeed.helenius.org) - Football News(DK)  
ting.minline.dk - Buy Old Stuff!(DK)

---

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [March 7, 2006, 3:16pm UTC](https://www.ruby-forum.com/t/can-i-set-up-multiple-deploy-targets-with-capistrano/77748/3 "2006-03-07T15:16:19Z")

</div>

On Mar 7, 2006, at 2:53 AM, Pat M. wrote:

> I have two servers up, one will be used for production, one for  
> testing stuff. I’d like to set things up so I can upgrade each one  
> independently. So I could type  
> $ rake deploy
> 
> That will update the test server. I do that, test it for a few  
> minutes/hours/days whatever, then I can put it onto the main server:  
> $ rake deploy\_production
> 
> Is this possible? If so, how can I do it?

You might want to take a look at:

[http://jamis.jamisbuck.org/articles/2006/01/03/using-switchtower-](http://jamis.jamisbuck.org/articles/2006/01/03/using-switchtower-)  
with-multiple-deployment-stages

(or, if that got too long for your email client)

[http://tinyurl.com/zywlx](http://tinyurl.com/zywlx)

Hope that helps,

Jamis
