How to use Capistrano 1.x to deploy Ruby on Rails apps when you have Cap 2.x

Posted on 24 January 2008

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

Comments left...

  • 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.

    Avi at 24 Jan 08 at 11:39

  • That’s:

    rails _1.2.3_ my_old_app

    Avi at 24 Jan 08 at 11:40

  • Yes, 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.

    Avi at 24 Jan 08 at 11:43

Got something to say?