Skip to content

Commit a03e393

Browse files
committed
Capistrano update
1 parent be99fe1 commit a03e393

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

Capfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ require "capistrano/rails/migrations"
2424
require "capistrano/puma"
2525
require "capistrano/rails/console"
2626
require "capistrano/scm/git"
27+
require "capistrano/webpacker/precompile"
2728

2829
install_plugin Capistrano::SCM::Git
2930
install_plugin Capistrano::Puma # Default puma tasks

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ group :development do
6666
gem "capistrano-bundler"
6767
gem "capistrano3-puma"
6868
gem "capistrano-rails-console", require: false
69+
gem 'capistrano-webpacker-precompile', require: false
6970
gem "listen", "~> 3.1.5"
7071
gem "rails-erd"
7172
gem "spring"

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ GEM
9292
capistrano-rvm (0.1.2)
9393
capistrano (~> 3.0)
9494
sshkit (~> 1.2)
95+
capistrano-webpacker-precompile (0.2)
96+
capistrano (~> 3.1)
9597
capistrano3-puma (3.1.1)
9698
capistrano (~> 3.7)
9799
capistrano-bundler
@@ -456,6 +458,7 @@ DEPENDENCIES
456458
capistrano-rails
457459
capistrano-rails-console
458460
capistrano-rvm
461+
capistrano-webpacker-precompile
459462
capistrano3-puma
460463
capybara (~> 3.12)
461464
capybara-screenshot

config/deploy.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
end
7575

7676
before :starting, :check_revision
77-
after :finishing, :compile_assets
77+
# after :finishing, :compile_assets
78+
after 'deploy:updated', 'webpacker:precompile'
7879
after :finishing, :cleanup
7980
after :finishing, :ensure_start
8081
end

0 commit comments

Comments
 (0)