javascript - gulp-ftp errors when uploading to remote path -


i'm trying simple gulp-ftp commands work, keep getting error when run task in instances can't quite seem figure out. i've created task uploadcss using gulp-ftp - upload site's .css files css folder.

the task uploadcss runs absolutely fine when folder doesn't exist, without errors. folder created on sever , files in there. when folder exists (i.e. want update files), receive error:

[11:33:33] using gulpfile ~/desktop/jm_site/gulpfile.js [11:33:33] starting 'uploadcss'...  events.js:85       throw er; // unhandled 'error' event         ^ error: read econnreset     @ exports._errnoexception (util.js:746:11)     @ tcp.onread (net.js:559:26) 

i've included task in watch task, need able update site's css changes made. gulp compiling sass css, concatenating remaining css in local css folder , minifying 1 main file. need gulp watch css sass, , upload new minified css file css folder once changes.

uploadcss task gulpfile.js:

gulp.task('uploadcss', function () {     return gulp.src('css/*.css')         .pipe(ftp({             host: 'host',             user: 'user',             pass: 'pass',             remotepath: 'css'              }))         .pipe(gulp.dest('css')); }); 

any insight? bit new gulp apologize in advance if i'm doing silly in code. i've search around find similar issues vinyl-ftp.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -