Topic: separate deployment to dev and production servers

Howdy.  This is probably a stupid question, but can someone point me to an example of how to set up cap to deploy *only* to the dev server, and then later deploy *only* to the prod server?  Is there a cap variable that will respond to an environment dev vs prod variable?

Our structure is that we've got a development/integration test server, which is also our quality-assurance go-for-release-check environment.  We've got a production server on a different machine.  We'd like to deploy to the dev server until the release is ready, and then deploy to the production server using the same recipe if possible.  Seems like a common need, but I haven't found the answer yet.

Thanks much.

Re: separate deployment to dev and production servers

Is this what you want? Conditional Capistrano Deployment

Railscasts - Free Ruby on Rails Screencasts

Re: separate deployment to dev and production servers

perfect, thanks!