Sha256: 187fb7129c6c184b3b325410d3a9a300773f3f9482fc8980f86e34c78c9740fb
Contents?: true
Size: 516 Bytes
Versions: 5
Compression:
Stored size: 516 Bytes
Contents
namespace :deploy do desc "compiles assets locally then rsyncs" task :compile_assets_locally do run_locally do execute "RAILS_ENV=#{fetch(:rails_env)} bundle exec rake assets:precompile" end on roles(:app) do |role| run_locally do execute"rsync -av ./public/assets/ #{role.user}@#{role.hostname}:#{release_path}/public/assets/;" end sudo "chmod -R 755 #{release_path}/public/assets/" end run_locally do execute "rm -rf ./public/assets" end end end
Version data entries
5 entries across 5 versions & 1 rubygems