Skip to content

Commit

Permalink
Add deploy for npm installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Jul 26, 2018
1 parent 9cc6e76 commit b732865
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,21 @@
end
end
end


namespace :deploy do
desc 'Run rake npm install'
task :npm_install do
on roles(:web) do
within release_path do
execute("cd #{release_path} && npm install")
end
end
end
end
after 'deploy:reverted', 'sneakers:restart'
after 'deploy:published', 'sneakers:restart'
after 'deploy:starting', 'sidekiq:quiet'
after 'deploy:reverted', 'sidekiq:restart'
after 'deploy:published', 'sidekiq:restart'
before "deploy:assets:precompile", "deploy:npm_install"

0 comments on commit b732865

Please sign in to comment.