lib/negroku/tasks/base.rb in negroku-1.1.9 vs lib/negroku/tasks/base.rb in negroku-1.1.10

- old
+ new

@@ -12,9 +12,15 @@ # Review and modify the tasks below on a per-app/language/framework basis. namespace :deploy do after "deploy:update_code", "deploy:migrate" + after "deploy:finalize_update", "deploy:symlink_cache" + desc "Symlink temporary cache from shared to the release" + task :symlink_cache, :roles => :app do + run "ln -nfs '#{shared_path}/tmp/cache' '#{release_path}/tmp/cache'" + end + after "deploy:setup", "deploy:setup_shared" desc "Sets up additional folders/files after deploy:setup." task :setup_shared do run "mkdir -p '#{shared_path}/config'" end