202 Capistrano: Install Capistrano 3 for your project

Posted Over 5 years ago. Visible to the public.

First, in your project, you need to install Capistrano 3 for Rails. You can find the official documentation here Show archive.org snapshot .

So your Gemfile should have content along these lines somewhere:

group :development do
  gem 'capistrano', require: false
  gem 'capistrano-rails', require: false
end

You should already have the bundler Gem installed, so you can install all necessary Gems for your Project by simply executing bundle.

$ bundle

After this you will have installed Capistrano 3 and can now use it to set up the deployment tasks for the staging and production environment your Project like so:

$ bundle exec cap install STAGES=staging,production
Last edit
9 months ago
Kim Klotz
License
Source code in this card is licensed under the MIT License.
Posted to opscomplete (2018-12-13 15:07)