aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--config/deploy.rb2
-rw-r--r--doc/CHANGES.md3
2 files changed, 5 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
diff --git a/doc/CHANGES.md b/doc/CHANGES.md
index 0032706ef..9d9802560 100644
--- a/doc/CHANGES.md
+++ b/doc/CHANGES.md
@@ -4,6 +4,9 @@
## Upgrade Notes
+* Capistrano now creates `SHARED_PATH/tmp/pids` and links `APP_ROOT/tmp/pids`
+ here, as the alert tracks daemon writes its pids to the generally expected
+ location of `APP_ROOT/tmp/pids`.
* rails-post-deploy no longer handles linking `APP_ROOT/log` to a log directory
outside the app. Capistrano users will find that `:symlink_configuration` now
links `APP_ROOT/log` to `SHARED_PATH/log`. Users who aleady use the