Sha256: d50db2e881b839f4e196cdc9724ebd98c791ffcbb9631007b38e7883a0515856
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
Capistrano::Configuration.instance.load do ############################################################################# # ASSETS namespace :assets do task :symlink, :roles => :app do assets.create_dirs run <<-CMD rm -rf #{release_path}/public/uploads; rm -rf #{release_path}/public/images/avatars; ln -nfs #{shared_path}/uploads #{release_path}/public/uploads; ln -nfs #{shared_path}/avatars #{release_path}/public/images/avatars; CMD end task :create_dirs, :roles => :app do %w(uploads avatars).each do |name| run "mkdir -p #{shared_path}/#{name}; true" end end end after "deploy:update_code" , "assets:symlink" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gramos-robbie-0.0.1 | lib/robbie/recipes/assets.rb |
gramos-robbie-0.0.2 | lib/robbie/recipes/assets.rb |