Skip to content

Commit

Permalink
WA环境:添加 ctripqa 服务器发布命令
Browse files Browse the repository at this point in the history
  • Loading branch information
amio committed Apr 1, 2014
1 parent 99de520 commit 515c77d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,25 @@ function sh(commands) {
function distribution(tar) {
var targets = {
prod: '[email protected]:/usr/local/httpd/htdocs/tohell/html/',
beta: '[email protected]:/usr/local/httpd/htdocs/beta/html/'
beta: '[email protected]:/usr/local/httpd/htdocs/beta/html/',
ctqa: '[email protected]:/var/www/ProtoShop/html/'
};
var rsyncParams = ' -avz -e ssh --delete --exclude=.git* --exclude=*.scss --exclude=node_modules';
var command = 'rsync ' + BUILD_ROOT + '/ ' + targets[tar] + rsyncParams;

sh(command);
}

gulp.task('dist', function () {
gulp.task('dist:prod', function () {
distribution('prod');
});

gulp.task('dist:beta', function () {
distribution('beta');
});

gulp.task('dist:prod', function () {
distribution('prod');
gulp.task('dist', function () {
distribution('ctqa');
});

/**
Expand Down

0 comments on commit 515c77d

Please sign in to comment.