From 8ddc7e3f23d5117fff823ac0243875cc1aa64741 Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Tue, 5 Sep 2017 11:23:25 +0300 Subject: [PATCH] Allow skipping "copy previous release" optimization by setting config.copy to false --- tasks/deploy/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/deploy/update.js b/tasks/deploy/update.js index 9d91f15..534768f 100644 --- a/tasks/deploy/update.js +++ b/tasks/deploy/update.js @@ -39,7 +39,7 @@ module.exports = function (gruntOrShipit) { function copyPreviousRelease() { var copyParameter = shipit.config.copy || '-a'; - if (!shipit.previousRelease) { + if (!shipit.previousRelease || shipit.config.copy === false) { return Promise.resolve(); } shipit.log('Copy previous release to "%s"', shipit.releasePath);