From bb3d6a789d65a6096924ebb2cb3017ff08216f10 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Thu, 10 Nov 2016 16:00:01 +0800 Subject: [PATCH] fix(grunt): missing deploy environment variable --- Gruntfile.coffee | 2 +- _deploy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 5cc2c9a7e..bab1f2397 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -328,7 +328,7 @@ module.exports = (grunt) -> # Copy compiled static files to local directory for further post-process amsf__deploy__sparanoid__copy_to_local: - command: "rsync -avz --delete --progress <%= config.deploy.rsync.params %> <%= jekyll.dist.options.dest %>/ <%= config.deploy.s3_website.#{deploy_env}.dest %>/site/<%= config.base %> > deploy-s3_website-#{deploy_env}.log" + command: "rsync -avz --delete --progress <%= config.deploy.rsync.#{deploy_env}.params %> <%= jekyll.dist.options.dest %>/ <%= config.deploy.s3_website.#{deploy_env}.dest %>/site/<%= config.base %> > deploy-s3_website-#{deploy_env}.log" # Auto commit untracked files sync'ed from sync_local amsf__deploy__sparanoid__auto_commit: diff --git a/_deploy.yml b/_deploy.yml index 61fef8a6c..64eb750f3 100644 --- a/_deploy.yml +++ b/_deploy.yml @@ -20,7 +20,7 @@ rsync: dest: /srv/www/sparanoid.com/public_html # Extra rsync parameters # I use `--rsync-path` here to run `rsync` with sudo permission. - params: --rsync-path="sudo rsync" + params: --rsync-path="sudo rsync" --exclude=lab s3_website: default: