From d0eb9f92b23b7b0612d5bed90025cb49b20d56e4 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Tue, 15 Jul 2014 16:40:28 +0100 Subject: Create tmp/pids in capistrano shared directory pids need to persist across deploys so that we can kill/restart running processes on deployment --- config/deploy.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/deploy.rb') diff --git a/config/deploy.rb b/config/deploy.rb index 9cc847dba..afc586ecf 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -57,6 +57,7 @@ namespace :deploy do "#{release_path}/files" => "#{shared_path}/files", "#{release_path}/cache" => "#{shared_path}/cache", "#{release_path}/log" => "#{shared_path}/log", + "#{release_path}/tmp/pids" => "#{shared_path}/tmp/pids", "#{release_path}/lib/acts_as_xapian/xapiandbs" => "#{shared_path}/xapiandbs", } @@ -68,6 +69,7 @@ namespace :deploy do run "mkdir -p #{shared_path}/files" run "mkdir -p #{shared_path}/cache" run "mkdir -p #{shared_path}/log" + run "mkdir -p #{shared_path}/tmp/pids" run "mkdir -p #{shared_path}/xapiandbs" end end -- cgit v1.2.3