1
gulp-sftp로 덤프 작업을 설정하고 성공없이 연결하기 위해 두 사이트를 시도했습니다. 나는 Filezilla로 둘 다 시도했으며 둘 다 연결 중입니다.gulp-sftp error on gulp-sftp
내 작업은 다음
var sftp = require('gulp-sftp');
gulp.task('sftp', function () {
return gulp.src('dist/**/*')
.pipe(sftp({
host: 'waws-prod-sn1-015.ftp.azurewebsites.windows.net',
user: 'fwd16\$fwd16',
pass: 'xxxxxx',
remotePath: '/site/wwwroot'
}));
});
내가 점점 오전 응답을 한 다음 나는 사용자를 노출하지 않으려로
bash-3.2$ gulp sftp
[22:29:18] Using gulpfile ~/Desktop/gulp-starter-csstricks/gulpfile.js
[22:29:18] Starting 'sftp'...
[22:29:18] Authenticating with password.
[22:29:28] 'sftp' errored after 10 s
[22:29:28] Error in plugin 'gulp-sftp'
Message:
Timed out while waiting for handshake
Details:
level: connection-timeout
[22:29:28] gulp-sftp SFTP abrupt closure
[22:29:28] Connection :: close
가 나는 인증 방법을 사용하는 것을 선호 gulp 파일에서 pwd를 실행하고 .gitignore에 .ftppass를 추가합니다.
내 .ftppass 파일에 사용자와 PWD를 추가하고 다음에 작업을 변경하는 경우 : 나는 다음과 같은 오류가
gulp.task('sftp', function () {
return gulp.src('dist/**/*')
.pipe(sftp({
host: 'waws-prod-sn1-015.ftp.azurewebsites.windows.net',
authFile:'.ftppass',
auth: 'keyMain',
remotePath: '/site/wwwroot'
}));
});
:
bash-3.2$ gulp sftp
[22:22:55] Using gulpfile ~/Desktop/gulp-starter-csstricks/gulpfile.js
[22:22:55] Starting 'sftp'...
[22:22:55] 'sftp' errored after 7.52 ms
[22:22:55] SyntaxError: Unexpected token $ in JSON at position 36
at Object.parse (native)
at module.exports (/Users/sohail/Desktop/gulp-starter-csstricks/node_modules/gulp-sftp/index.js:33:25)
at Gulp.<anonymous> (/Users/sohail/Desktop/gulp-starter-csstricks/gulpfile.js:86:15)
at module.exports (/Users/sohail/Desktop/gulp-starter-csstricks/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/sohail/Desktop/gulp-starter-csstricks/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/sohail/Desktop/gulp-starter-csstricks/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/sohail/Desktop/gulp-starter-csstricks/node_modules/orchestrator/index.js:134:8)
at /usr/local/lib/node_modules/gulp/bin/gulp.js:129:20
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:592:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
사람은 내가 실종 이해 내 코드? 36 번 위치
는 JSON에서 잘못된 형식을 보인다에서 JSON에서 예기치 않은 토큰 $ : 구문 에러 :
는 소하