From ee2e8baee8830d966c246f20b2edcb9b9d38882a Mon Sep 17 00:00:00 2001 From: Andrew Hobden Date: Tue, 23 May 2017 15:10:51 +0200 Subject: [PATCH] Correct rsync and symbolic link for asset --- config/deploy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index 9f4cda8e0..9542eb1a1 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -71,11 +71,11 @@ # this needs to be done outside run_locally in order for host to exist remote_dir = "#{host.user}@#{host.hostname}:#{release_path}/public/" execute "mkdir -p #{release_path}/public/assets/" - run_locally { execute "rsync -av --delete #{local_dir} #{remote_dir}" } + run_locally { execute "rsync -av --delete --exclude system #{local_dir} #{remote_dir}" } # We need to link the existing shared `/var/apps/wheelmap/public/system` folder # into the new release. - execute :ln, "-s", "#{deploy_path}/public/system/uploads", "#{release_path}/public/system" + execute :ln, "-s", "#{deploy_path}/public/system", "#{release_path}/public/system" # We create this file so the consul health check will pass. We can't use an # existing file since they are all unpredictably named.