diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-09-11 18:59:11 +1000 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-09-11 19:08:30 +1000 |
commit | 01ca2913976fdab6846989814d13e6bf7f1cb253 (patch) | |
tree | db312361bb8c3a88d3807bc506a68e03efe0f6a2 | |
parent | 4565b4f1a03910658110b7f1a90bd3fe4a11f401 (diff) |
Persist the cache between deploys and serve the download directory publicly
-rw-r--r-- | config/deploy.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 1810185a0..886cc64fe 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -41,7 +41,9 @@ namespace :deploy do links = { "#{release_path}/config/database.yml" => "#{shared_path}/database.yml", "#{release_path}/config/general.yml" => "#{shared_path}/general.yml", - "#{release_path}/files" => "#{shared_path}/files" + "#{release_path}/files" => "#{shared_path}/files", + "#{release_path}/cache" => "#{shared_path}/cache", + "#{release_path}/public/download" => "#{release_path}/cache/zips/download" } # "ln -sf <a> <b>" creates a symbolic link but deletes <b> if it already exists @@ -50,6 +52,7 @@ namespace :deploy do after 'deploy:setup' do run "mkdir -p #{shared_path}/files" + run "mkdir -p #{shared_path}/cache" end end |