Skip to content

Commit

Permalink
feat(deploy): update rsync deploy parameter
Browse files Browse the repository at this point in the history
BREAKING CHANGE: now the original  are removed, all additional  parameters should be passed through  option, you can view  for more information about this change.
  • Loading branch information
sparanoid committed Jun 1, 2016
1 parent 0489949 commit a63ae8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,11 @@ module.exports = (grunt) ->

# Direct rsync compiled static files to remote server
amsf__deploy__rsync:
command: "rsync -avz -e 'ssh -p <%= config.deploy.rsync.port %>' --delete --progress <%= config.deploy.ignore_files %> <%= config.dist %>/ <%= config.deploy.rsync.user %>@<%= config.deploy.rsync.host %>:<%= config.deploy.rsync.dest %> > deploy-rsync.log"
command: "rsync -avz -e 'ssh -p <%= config.deploy.rsync.port %>' --delete --progress <%= config.deploy.rsync.params %> <%= config.dist %>/ <%= config.deploy.rsync.user %>@<%= config.deploy.rsync.host %>:<%= config.deploy.rsync.dest %> > deploy-rsync.log"

# Copy compiled static files to local directory for further post-process
amsf__deploy__sparanoid__copy_to_local:
command: "rsync -avz --delete --progress <%= config.deploy.ignore_files %> <%= jekyll.dist.options.dest %>/ <%= config.deploy.s3_website.dest %>/site/<%= config.base %> > deploy-s3_website.log"
command: "rsync -avz --delete --progress <%= config.deploy.rsync.params %> <%= jekyll.dist.options.dest %>/ <%= config.deploy.s3_website.dest %>/site/<%= config.base %> > deploy-s3_website.log"

# Auto commit untracked files sync'ed from sync_local
amsf__deploy__sparanoid__auto_commit:
Expand Down
7 changes: 5 additions & 2 deletions _deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
# Custom deployment variables
#

# Prevent them from being deleted on server (rsync --delete), these files and directories are available on the remote server but outside this git repo. I need to ignore them.
ignore_files: --exclude=lab

rsync:
user: rsync
port: 22
host: caladbolg.sparanoid.com
dest: /srv/www/sparanoid.com/public_html
# Extra rsync parameters
# I use `--exclude` here to prevent additional files from being deleted on
# the server (rsync --delete), these files and directories are available on
# the remote server but outside this git repo. So I need to ignore them.
params: --exclude=lab

s3_website:
dest: ~/Git/sparanoid.com-prod

0 comments on commit a63ae8e

Please sign in to comment.