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

Fix copy #49

Merged
merged 2 commits into from
Apr 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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