gulp.src('/var/apps/statics/font/**')
.pipe(rsync({
root: '/var/apps/statics/font/',
hostname: 'hoge-static01',
destination: '/var/apps/statics/font/',
progress: true,
recursive: true ,
compress: true,
clean: true,
exclude: [
'.git',
'.gitignore',
'node_modules'
]})
).on('error',function(msg){console.log(msg)});
watchからこんな感じで実行したら以下のようなエラーでこけた
/etc/gulp/node_modules/gulp-rsync/log.js:8
process.stdout.cursorTo(0);
^
TypeError: Object #<SyncWriteStream> has no method 'cursorTo'
at Console.log (/etc/gulp/node_modules/gulp-rsync/log.js:8:18)
at module.exports (/etc/gulp/node_modules/gulp-rsync/node_modules/gulp-util/lib/log.js:8:15)
at module.exports (/etc/gulp/node_modules/gulp-rsync/log.js:15:26)
at /etc/gulp/node_modules/gulp-rsync/index.js:112:13
at Array.forEach (native)
at /etc/gulp/node_modules/gulp-rsync/index.js:111:29
at Array.forEach (native)
at Socket.handler (/etc/gulp/node_modules/gulp-rsync/index.js:110:37)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:764:14)
_人人人人人人人人人人人人人人人人人_
> Seems project is abandoned <
 ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄
silent: true
つけてとりあえずこけなくなったけど、なんだかなぁ
gulp.src('/var/apps/statics/font/**')
.pipe(rsync({
root: '/var/apps/statics/font/',
hostname: 'hoge-static01',
destination: '/var/apps/statics/font/',
progress: true,
recursive: true ,
compress: true,
silent: true,
clean: true,
exclude: [
'.git',
'.gitignore',
'node_modules'
]})
).on('error',function(msg){console.log(msg)});