How to use Capistrano 1.x to deploy Ruby on Rails apps when you have Cap 2.x
Recently installed Capistrano 2.x, but need to deploy an old Rails site using an old deploy script?
If you haven't got round to updating your old Rails Capistrano deploy scripts to the new 2.x syntax you can't just type cap deploy anymore.
However, it is as simple as:
cap _1.4.1_ deploy
About
Paul is a Rails developer for Kyan web agency.
Checkout his ramblings about music, what he's listening to and his other random thoughts.
He also writes on the Kyan blog.
More snippets
Take a look in the archive
Need a website?
Your best bet is to contact Paul's employer. Make sure to check out the portfolio of work.
Hosting
I recommend hostingrails.com
Recommended Reading
Contact
my name at gmail.com
3 comments made
Is that part of gem executables or is it part of Capistrano? I guess what I’m asking is could you do something like:
rails 1.2.3 my_old_app
I know you can generate a rails app with a version using a flag – just needed an example.
That’s:
rails _1.2.3_ my_old_appYes, you can. I’d assume you can call any gem to execute a specific version using that syntax. Thanks for the tip, it’s helpful.
Got something to say?