Skip to content

Commit

Permalink
添加 debug 环境部署配置
Browse files Browse the repository at this point in the history
  • Loading branch information
amio committed May 28, 2014
1 parent 48ab88c commit e49fe68
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,23 +164,28 @@ function sh(commands) {

function distribution(tar) {
var targets = {
io: '[email protected]:/var/www/ProtoShop/html/',
ctqa: '[email protected]:/var/www/ProtoShop/html/'
open: '[email protected]:/var/www/ProtoShop/html/',
ctqa: '[email protected]:/var/www/ProtoShop/html/',
debug: '[email protected]:/var/www/Debug/'
};
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:io', function () {
distribution('io');
gulp.task('dist:open', function () {
distribution('open');
});

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

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

/**
* =====================================
* General Tasks
Expand Down

0 comments on commit e49fe68

Please sign in to comment.