diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-07-08 10:59:29 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-07-10 12:42:29 +0100 |
commit | 1130f8dbc19cde2edaf0362131fb76bdd9275239 (patch) | |
tree | 8289c950d82b29b217e0e586dc0811d43a3a79da | |
parent | 58548191fb943ba3da471b3961a46aa6b293d8a5 (diff) |
Persist log directory across capistrano deployments
-rw-r--r-- | config/deploy.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index c73d16f53..9cc847dba 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -56,6 +56,7 @@ namespace :deploy do "#{release_path}/public/foi-user-use.png" => "#{shared_path}/foi-user-use.png", "#{release_path}/files" => "#{shared_path}/files", "#{release_path}/cache" => "#{shared_path}/cache", + "#{release_path}/log" => "#{shared_path}/log", "#{release_path}/lib/acts_as_xapian/xapiandbs" => "#{shared_path}/xapiandbs", } @@ -66,6 +67,7 @@ namespace :deploy do after 'deploy:setup' do run "mkdir -p #{shared_path}/files" run "mkdir -p #{shared_path}/cache" + run "mkdir -p #{shared_path}/log" run "mkdir -p #{shared_path}/xapiandbs" end end |