K
K
kitas2018-12-19 17:00:52
Web development
kitas, 2018-12-19 17:00:52

How to upload Gulp project to hosting?

I wanted to upload a gulp project to hosting. And got something like this

[20:56:37] Using gulpfile ~\Desktop\tech-zone-master\gulpfile.js
[20:56:37] Starting 'default'...
(node:14496) DeprecationWarning: Ftp.raw[mkd](args): Use Ftp.raw('mkd args') instead.
(node:14496) DeprecationWarning: Ftp.raw[feat](args): Use Ftp.raw('feat args') instead.
(node:14496) DeprecationWarning: Ftp.raw[syst](args): Use Ftp.raw('syst args') instead.
(node:14496) DeprecationWarning: Ftp.raw[user](args): Use Ftp.raw('user args') instead.
(node:14496) DeprecationWarning: Ftp.raw[pass](args): Use Ftp.raw('pass args') instead.
(node:14496) DeprecationWarning: Ftp.raw[type](args): Use Ftp.raw('type args') instead.

events.js:183
      throw er; // Unhandled 'error' event
      ^
Error: 553 Can't open that file: No such file or directory
    at module.exports.Ftp.parse (C:\Users\Kitas\Desktop\tech-zone-master\node_modules\jsftp\lib\jsftp.js:255:11)
    at module.exports.Ftp.parseResponse (C:\Users\Kitas\Desktop\tech-zone-master\node_modules\jsftp\lib\jsftp.js:171:8)
    at Stream.<anonymous> (C:\Users\Kitas\Desktop\tech-zone-master\node_modules\jsftp\lib\jsftp.js:139:10)
    at emitOne (events.js:116:13)
    at Stream.emit (events.js:211:7)
    at ResponseParser.reemit (C:\Users\Kitas\Desktop\tech-zone-master\node_modules\duplexer\index.js:70:25)
    at emitOne (events.js:116:13)
    at ResponseParser.emit (events.js:211:7)
    at readableAddChunk (C:\Users\Kitas\Desktop\tech-zone-master\node_modules\readable-stream\lib\_stream_readable.js:195:16)
    at ResponseParser.Readable.push (C:\Users\Kitas\Desktop\tech-zone-master\node_modules\readable-stream\lib\_stream_readable.js:162:10)


Here is what was in the Gulp File
var gulp = require('gulp'),
  ftp = require('gulp-ftp'),
  gutil = require('gulp-util');

gulp.task('default', function () {
  return gulp.src('src/*')
    .pipe(ftp({
      host: 'smth',
      user: 'smth',
      pass: 'smth'
    }))
        .pipe(gutil.noop());
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question