diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-09-11 18:14:40 +1000 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-09-11 18:14:40 +1000 |
commit | 5bd6ddf16f234dbe662082114da1a311be8fc805 (patch) | |
tree | 37688613c0d285f0817bed69afcebd9ae1cbebc3 | |
parent | 5320ac16e77b3ff27d3b9c5753f96eaed917ba2d (diff) |
The files directory should persist between deploys
-rw-r--r-- | config/deploy.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index a0c4049e6..267ede34e 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -43,12 +43,17 @@ namespace :deploy do task :symlink_configuration do links = { "#{release_path}/config/database.yml" => "#{shared_path}/database.yml", - "#{release_path}/config/general.yml" => "#{shared_path}/general.yml" + "#{release_path}/config/general.yml" => "#{shared_path}/general.yml", + "#{release_path}/files" => "#{shared_path}/files" } # "ln -sf <a> <b>" creates a symbolic link but deletes <b> if it already exists run links.map {|a| "ln -sf #{a.last} #{a.first}"}.join(";") end + + after 'deploy:setup' do + run "mkdir -p #{shared_path}/files" + end end after 'deploy:update_code', 'deploy:symlink_configuration' |