Sha256: 40044f2a15292bd6d1afe39c16a5327711dc373978cd5df1c4abfdd47430c26c
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :local do desc 'Run the precompile task locally and rsync with shared' task :assets, roles: :web, except: { no_release: true } do remote_path = "#{user}@#{domain}:#{shared_path}" run_locally "bundle exec rake assets:precompile" run_locally "rsync --recursive --times --rsh=ssh --compress --human-readable --progress public/assets #{remote_path}" run_locally "bundle exec rake assets:clean" end end namespace :deploy do namespace :assets do task :precompile, roles: :web, except: { no_release: true } do local.assets end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plur-0.0.4 | lib/plur/capistrano/local.rb |