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 web developer for Kyanmedia web agency. He's lucky enough to write in Ruby on Rails full-time and uses this site to post snippets of code.
Contact
my name at gmail.com
More snippets
Take a look in the archive
Need a website?
Contact my employer. Make sure to check out our portfolio of work.
Hosting
I recommend hostingrails.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?