Skip to content

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

View the snippets archive ››

3 comments made

Avi commented on 24 Jan 08 at 11:39

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 commented on 24 Jan 08 at 11:40

That’s:

rails _1.2.3_ my_old_app
Avi commented on 24 Jan 08 at 11:43

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.

Got something to say?

About

Paul is a Rails developer for Kyan web agency in Guildford, Surrey, UK.

More snippets

Take a look in the archive

Need a website?

Get in touch with me at my name at gmail.com or contact my employer.

Hosting

I recommend hostingrails.com

Contact

my name at gmail.com