Skip to content

Instantly share code, notes, and snippets.

@nsommer

nsommer/bower.rake

Created Oct 8, 2015
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@jcserracampos jcserracampos commented Dec 18, 2015

Nice approach.

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