@kitas

Как загрузить Gulp проект на хостинг?

Я хотел загурузить gulp проект на хостинг. И получил что-то вроде этого
[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)


Вот что было в Gulp Файле
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());
});
  • Вопрос задан
  • 376 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы