From 1025371e46c040daf5cddaa8876057e1be49a42a Mon Sep 17 00:00:00 2001 From: Amio Date: Mon, 10 Mar 2014 17:55:33 +0800 Subject: [PATCH] =?UTF-8?q?WA=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20gulp=20dist=20=E8=B7=AF=E5=BE=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 9c75e9d..b04b44b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -147,8 +147,9 @@ function distribution(tar) { beta: 'sxxie@wxddb1.qa.nt.ctripcorp.com:/usr/local/httpd/htdocs/beta/html/' }; var rsyncParams = ' -avz -e ssh --delete --exclude=.git* --exclude=*.scss --exclude=node_modules'; + var command = 'rsync ' + BUILD_ROOT + '/ ' + targets[tar] + rsyncParams; - sh('rsync ' + BUILD_ROOT + '/ ' + targets[tar].beta + rsyncParams); + sh(command); } gulp.task('dist', function () {