Skip to content

Commit

Permalink
Correct rsync and symbolic link for asset
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hobden committed May 23, 2017
1 parent 49ccec1 commit 9a3c4cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9a3c4cf

Please sign in to comment.