为什么gulp-rsync没有部署?

时间:2016-03-28 16:51:23

标签: deployment gulp rsync

我尝试使用gulp-rsync部署到临时站点。我没有收到任何错误,但它没有部署到我的服务器。我也希望被要求输入密码,这是没有发生的。

var gulp  = require('gulp'),
    gutil = require('gulp-util'),
    sass = require('gulp-sass'),
    autoprefixer = require('gulp-autoprefixer'),
    minifycss = require('gulp-minify-css'),
    jshint = require('gulp-jshint'),
    stylish = require('jshint-stylish'),
    uglify = require('gulp-uglify'),
    concat = require('gulp-concat'),
    rename = require('gulp-rename'),
    plumber = require('gulp-plumber'),
    bower = require('gulp-bower'),
    sftp = require('gulp-sftp'),
    rsync = require('gulp-rsync');

    gulp.task('deploy', function() {
  gulp.src('build/test_for_rsync')
    .pipe(rsync({
      root: 'build',
      hostname: '*****.wpengine.com',
      username: '*****',
      port: 2222,
      destination: '/wp-content/themes/',
      incremental: true,
      progress: true,
      relative: true,
      exclude: ['/node_modules', '/bower_components'],
      recursive: true


    }));
});

1 个答案:

答案 0 :(得分:5)

尝试在names_list=(aa ab ac ad) for i in ${names_list[@]} do hive -e "show tables like '"''*$i*''"'">all_tables_list done 之前使用return关键字:

gulp.src