2016-03-28 8 views
1

Ich versuche, mit gulp-rsync auf einer Staging-Site bereitzustellen. Ich erhalte keine Fehler, es wird jedoch nicht auf Mein Server bereitgestellt. Ich würde auch erwarten, nach dem Passwort gefragt zu werden, was nicht passiert.Warum wird gulp-rsync nicht bereitgestellt?

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 


    })); 
}); 

Antwort

5

Versuchen return Schlüsselwort vor gulp.src mit:

gulp.task('deploy', function() { 
    return gulp.src('build/test_for_rsync') 
    .pipe(rsync({ 
    root: 'build', ... 
+0

Ah ... die Dokumentation über [npm: schlucke-rsync] (https://www.npmjs.com/package/gulp-rsync) ist alt. Die README.md auf github wurde [aktualisiert] (https://github.com/jerrysu/gulp-rsync/commit/bcfd42c7a6fafc29db8501516fc27f2f0940c5e1), aber das Update wird nicht auf npmjs.com angezeigt. – thirdender