Skip to content
This repository was archived by the owner on Mar 18, 2018. It is now read-only.

Commit

Permalink
Merge pull request #49 from shipitjs/fix-copy
Browse files Browse the repository at this point in the history
Fix copy
  • Loading branch information
gregberge committed Apr 6, 2015
2 parents a02131d + eecc475 commit 521185c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/deploy/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function (gruntOrShipit) {
if (!shipit.previousRelease) {
return Promise.resolve();
}
return shipit.remote(util.format('cp -R %s/. %s', path.join(shipit.releasesPath, shipit.previousRelease), shipit.releasePath));
return shipit.remote(util.format('cp -a %s/. %s', path.join(shipit.releasesPath, shipit.previousRelease), shipit.releasePath));
}

/**
Expand All @@ -66,7 +66,7 @@ module.exports = function (gruntOrShipit) {
function remoteCopy() {
shipit.log('Copy project to remote servers.');

return shipit.remoteCopy(shipit.config.workspace + '/', shipit.releasePath)
return shipit.remoteCopy(shipit.config.workspace + '/', shipit.releasePath, {rsync: '--del'})
.then(function () {
shipit.log(chalk.green('Finished copy.'));
});
Expand Down

0 comments on commit 521185c

Please # to comment.