File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed
Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ require "capistrano/rails/migrations"
2424require "capistrano/puma"
2525require "capistrano/rails/console"
2626require "capistrano/scm/git"
27+ require "capistrano/webpacker/precompile"
2728
2829install_plugin Capistrano ::SCM ::Git
2930install_plugin Capistrano ::Puma # Default puma tasks
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
8081end
You can’t perform that action at this time.
0 commit comments