mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.36k stars 491 forks source link

Revert "Support Rails 6 asset recompilation through webpacker" #723

Closed lovro-bikic closed 1 year ago

lovro-bikic commented 1 year ago

Reverts https://github.com/mina-deploy/mina/pull/656 to preserve backward compatibility.

Users who still wish to use the changes introduced by the reverted PR can do so by adding the following:

# config/deploy.rb
set :compiled_asset_path, ['public/assets', 'public/packs']
set :asset_dirs, ['vendor/assets/', 'app/assets/', 'app/javascript/', 'package.json']
set :shared_dirs, fetch(:shared_dirs, []).push('log', 'tmp/cache', 'node_modules', *fetch(:compiled_asset_path))