Skip to content

Commit

Permalink
preparing shared tmp dir with capistrano
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Silveira committed Aug 26, 2010
1 parent 2771e92 commit 56f9b83
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Capfile
Expand Up @@ -27,6 +27,17 @@ server domain, :app, :web

namespace :deploy do
task :restart do
# run "touch #{current_path}/tmp/restart.txt"
run "sudo /etc/init.d/cpfcnpj upgrade"
end
task :symlink_tmp do
run "rm -rf #{release_path}/tmp"
run "ln -nfs #{shared_path}/tmp #{release_path}/tmp"
end
task :setup_tmp do
run "mkdir -p #{shared_path}/tmp/sockets"
run "mkdir -p #{shared_path}/tmp/pids"
end
end

after 'deploy:update_code', 'deploy:symlink_tmp'
after 'deploy:setup', 'deploy:setup_tmp'

0 comments on commit 56f9b83

Please sign in to comment.