diff --git a/Capfile b/Capfile index e705e37..6bac062 100644 --- a/Capfile +++ b/Capfile @@ -27,6 +27,7 @@ require 'capistrano/bundler' require 'capistrano/rails/assets' require 'capistrano/rails/migrations' require 'capistrano/npm' +require 'capistrano/rails/console' # Load custom tasks from `lib/capistrano/tasks` if you have any defined. Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } diff --git a/Gemfile b/Gemfile index 1ffb68c..243519c 100644 --- a/Gemfile +++ b/Gemfile @@ -122,6 +122,9 @@ group :development do # NPM support for Capistrano 3.x. gem 'capistrano-npm', '~> 1.0', require: false + # Remote Rails console for Capistrano. + gem 'capistrano-rails-console', '~> 2.3', require: false + # Call 'byebug' anywhere in the code to stop execution # and get a debugger console. gem 'byebug', platforms: %i[mri mingw x64_mingw] diff --git a/Gemfile.lock b/Gemfile.lock index eb25e7e..9a645cb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -74,6 +74,9 @@ GEM capistrano-rails (1.4.0) capistrano (~> 3.1) capistrano-bundler (~> 1.1) + capistrano-rails-console (2.3.0) + capistrano (>= 3.5.0, < 4.0.0) + sshkit-interactive (~> 0.3.0) capybara (3.12.0) addressable mini_mime (>= 0.1.3) @@ -350,6 +353,8 @@ GEM sshkit (1.18.0) net-scp (>= 1.1.2) net-ssh (>= 2.8.0) + sshkit-interactive (0.3.0) + sshkit (~> 1.12) term-ansicolor (1.7.0) tins (~> 1.0) thor (0.20.3) @@ -392,6 +397,7 @@ DEPENDENCIES capistrano (~> 3.11) capistrano-npm (~> 1.0) capistrano-rails (~> 1.4) + capistrano-rails-console (~> 2.3) capybara-screenshot (~> 1.0) capybara-webkit (~> 1.15) coveralls