Reputation: 1524
With Capistrano 3 out and Mavericks and Yosemite released... or if you had a recent clean install on of Rails and Capistrano on your development machine you may end up getting errors when trying to deploy a Rails 3.X app due to your machine having Capistrano 3.0 being installed.
If you are getting errors about Capistrano 3 being unable to read your deploy.rb file...
Upvotes: 7
Views: 12296
Reputation: 1524
In your Gemfile, change your reference to Capistrano to the last version published in 2.0 (as of this writing).
group :development do
gem 'capistrano', '~> 2.15.9'
#other development gems...
end
On your local machine, make sure you have that version installed
gem install capistrano -v 2.15.9
Upvotes: 21
Reputation: 27878
You can run gem wrapper scripts using a version specifier.
The following should run capistrano 2.x, if it's installed (see `gem list --local´):
cap "_<3_" --version
Upvotes: 4