aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-07-15 16:40:28 +0100
committerGareth Rees <gareth@mysociety.org>2014-07-15 16:43:22 +0100
commitd0eb9f92b23b7b0612d5bed90025cb49b20d56e4 (patch)
tree47c22d76dffe98a1006dc3e59f098a02f4a1954e /config/deploy.rb
parent8ad2e5f6d54ff07173e8363d35386c2843a05826 (diff)
Create tmp/pids in capistrano shared directory
pids need to persist across deploys so that we can kill/restart running processes on deployment
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb2
1 files changed, 2 insertions, 0 deletions
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