correr yarn antes de compilar los assets
This commit is contained in:
parent
dfe2895b60
commit
c3ae2acf06
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue