Last active
August 29, 2015 14:04
-
-
Save swalkinshaw/59945b121f575f2a9b13 to your computer and use it in GitHub Desktop.
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
set :theme_path, Pathname.new('web/app/themes/mytheme') | |
set :local_app_path, Pathname.new('/Applications/MAMP/htdocs/mysite') | |
set :local_theme_path, fetch(:local_app_path).join(fetch(:theme_path)) | |
namespace :deploy do | |
task :compile_assets do | |
run_locally do | |
within fetch(:local_theme_path) do | |
execute :grunt, :build | |
end | |
end | |
end | |
task :copy_assets do | |
invoke 'deploy:compile_assets' | |
on roles(:web) do | |
upload! fetch(:local_theme_path).join('dist'), release_path.join(fetch(:theme_path)), recursive: true | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment