diff options
Diffstat (limited to 'config/deploy.rb')
-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' |