Configure Capistrano to use NPM
This commit is contained in:
parent
d7e9f30645
commit
02b3c86edb
3 changed files with 7 additions and 5 deletions
3
Capfile
3
Capfile
|
@ -19,7 +19,6 @@ install_plugin Capistrano::SCM::Git
|
|||
# https://github.com/capistrano/chruby
|
||||
# https://github.com/capistrano/bundler
|
||||
# https://github.com/capistrano/rails
|
||||
# https://github.com/capistrano/passenger
|
||||
#
|
||||
# require 'capistrano/rvm'
|
||||
# require 'capistrano/rbenv'
|
||||
|
@ -27,7 +26,7 @@ install_plugin Capistrano::SCM::Git
|
|||
require 'capistrano/bundler'
|
||||
require 'capistrano/rails/assets'
|
||||
require 'capistrano/rails/migrations'
|
||||
# require 'capistrano/passenger'
|
||||
require 'capistrano/npm'
|
||||
|
||||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined.
|
||||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
||||
|
|
6
Gemfile
6
Gemfile
|
@ -42,9 +42,6 @@ gem 'bcrypt', '~> 3.1'
|
|||
# Use ActiveStorage variant.
|
||||
# gem 'mini_magick', '~> 4.8'
|
||||
|
||||
# Use Capistrano for deployment.
|
||||
# gem 'capistrano-rails', group: :development
|
||||
|
||||
# Reduces boot times through caching; required in config/boot.rb.
|
||||
gem 'bootsnap', '>= 1.1.0', require: false
|
||||
|
||||
|
@ -116,6 +113,9 @@ group :development do
|
|||
# Rails specific Capistrano tasks.
|
||||
gem 'capistrano-rails', '~> 1.4', require: false
|
||||
|
||||
# NPM support for Capistrano 3.x.
|
||||
gem 'capistrano-npm', '~> 1.0', require: false
|
||||
|
||||
# Call 'byebug' anywhere in the code to stop execution
|
||||
# and get a debugger console.
|
||||
gem 'byebug', platforms: %i[mri mingw x64_mingw]
|
||||
|
|
|
@ -69,6 +69,8 @@ GEM
|
|||
capistrano-bundler (1.4.0)
|
||||
capistrano (~> 3.1)
|
||||
sshkit (~> 1.2)
|
||||
capistrano-npm (1.0.2)
|
||||
capistrano (>= 3.0.0)
|
||||
capistrano-rails (1.4.0)
|
||||
capistrano (~> 3.1)
|
||||
capistrano-bundler (~> 1.1)
|
||||
|
@ -360,6 +362,7 @@ DEPENDENCIES
|
|||
bootstrap (~> 4.1.3)
|
||||
byebug
|
||||
capistrano (~> 3.11)
|
||||
capistrano-npm (~> 1.0)
|
||||
capistrano-rails (~> 1.4)
|
||||
capybara-screenshot (~> 1.0)
|
||||
capybara-webkit (~> 1.15)
|
||||
|
|
Reference in a new issue