Answer the question
In order to leave comments, you need to log in
Gulp rsync not working?
Hello!
Tell me
why rsync does not work, what errors fall out
. 54:53] Starting 'rsync'...
[12:54:57] gulp-rsync: Starting rsync to dev-working.ru:study_maket_5/...
internal/child_process.js:319
throw errnoException(err, 'spawn ');
^
Error: spawn ENAMETOOLONG
at exports._errnoException (util.js:1050:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:378:9)
at rsync.execute (H:\YandexDisk\web2018\study_maket_5\html\node_modules\gulp
-rsync\rsync.js:85:22)
at DestroyableTransform._flush (H:\YandexDisk\web2018\study_maket_5\html\nod
e_modules\gulp-rsync\index.js:131:19)
at DestroyableTransform. (H:\YandexDisk\web2018\study_maket_5\htm
l\node_modules\gulp-rsync\node_modules\readable-stream\lib\_stream_transform.js:
135:12)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:91:20)
at DestroyableTransform.emit (events.js:188:7)
at finishMaybe (H:\YandexDisk\web2018\study_maket_5\html\node_modules\gulp-r
sync\node_modules\readable-stream\lib \_stream_writable.js:371:12)
H:\YandexDisk\web2018\study_maket_5\html>
gulp.task('rsync', function() {
return gulp.src('app/**')
.pipe(rsync({
root: 'app/',
hostname: 'dev-working.ru',
destination: 'study_maket_5/',
// include: ['*. htaccess'], // Includes files to deploy
exclude: ['**/Thumbs.db', '**/*.DS_Store'], // Excludes files from deploy
recursive: true,
archive: true,
silent: false,
compress: true,
chmod: "ugo=rwX"
}))
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question