Skip to content

Instantly share code, notes, and snippets.

@nsommer
Created October 8, 2015 17:09
Show Gist options
  • Save nsommer/caedc27322e4b714b8fd to your computer and use it in GitHub Desktop.
Save nsommer/caedc27322e4b714b8fd to your computer and use it in GitHub Desktop.
Bower integration for capistrano deployments
namespace :bower do
%w[install list].each do |command|
desc "#{command} bower packages"
task command do
on roles(:web) do
within release_path do
execute 'bower', 'install'
end
end
end
end
end
# Automatically runs `bower:install` during every deployment.
namespace :deploy do
before 'deploy:compile_assets', 'bower:install'
end
@jcserracampos
Copy link

Nice approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment