Created
October 8, 2015 17:09
-
-
Save nsommer/caedc27322e4b714b8fd to your computer and use it in GitHub Desktop.
Bower integration for capistrano deployments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automatically runs `bower:install` during every deployment. | |
namespace :deploy do | |
before 'deploy:compile_assets', 'bower:install' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice approach.