Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capistrano deployment problems

When I type

cap production deploy

I get

Capfile locked at 3.1.0, but 3.2.0 is loaded

When I uninstall capistrano 3.2.0 I get

Could not find capistrano-3.2.0 in any of the sources Run `bundle install` to install missing gems. 

Me gemfile has

gem 'capistrano', '~> 3.1' gem 'capistrano-rails', '~> 1.1' 

And Capfile

require 'capistrano/setup' require 'capistrano/deploy' require 'capistrano/bundler' require 'capistrano/rails/assets' 

What to do in that case?

like image 934
Kamil Lelonek Avatar asked Apr 15 '14 22:04

Kamil Lelonek


People also ask

How Capistrano works?

How does Capistrano work? Capistrano is a framework written in Ruby that provides automated deploy scripts. It connects to your web server via SSH and executes a bunch of tasks that will make your app ready to shine.

Why use Capistrano?

Capistrano is a Ruby based remote server automation tool which can be easily used to automate mundane deployment and system management tasks. Using Capistrano, you can almost entirely automate all actions you would normally take to get your product live.

What is Capistrano Ruby?

Capistrano is a framework for building automated deployment scripts. Although Capistrano itself is written in Ruby, it can easily be used to deploy projects of any language or framework, be it Rails, Java, or PHP.


1 Answers

It occurs that config/deploy.rb has lock '3.1.0'.

It was enough to change it to '3.2.0' and now it's working.

like image 52
Kamil Lelonek Avatar answered Oct 13 '22 08:10

Kamil Lelonek