diff --git a/config/deploy.rb b/config/deploy.rb index 9f4cda8e0..0b885b85d 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.