diff --git a/config/deploy.rb b/config/deploy.rb index 5b3fcc7..b6cf1dc 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -10,3 +10,16 @@ set :linked_dirs, %w[_sites _deploy _usuarias _invitadxs public/covers] set :linked_files, %w[.env db/production.sqlite3] set :keep_releases, 1 + +before 'deploy:assets:precompile', 'deploy:yarn_install' + +namespace :deploy do + desc 'Run rake yarn:install' + task :yarn_install do + on roles(:web) do + within release_path do + execute("cd #{release_path} && yarn install") + end + end + end +end