gtg092x / gulp-sftp

Gulp SFTP Deploy
140 stars 61 forks source link

Can't find uploaded file on my target machine #80

Open NotCoderJack opened 6 years ago

NotCoderJack commented 6 years ago

I have a sftp task like this:

gulp.task('sftp', ['clean-remote'], function() { return gulp.src('./dist/**') .pipe(sftp(testSshConfig)); });

when I exec gulp sftp command, the terminal print following logs:

[20:46:51] Using gulpfile ~/work/front-end/tts-youche/gulpfile.js [20:46:51] Starting 'clean-remote'...[20:46:51] Finished 'clean-remote' after 13 ms [20:46:51] Starting 'test'...[20:46:51] Authenticating with password. [20:46:51] gulp-ssh :: shell :: cd /home/lvchaocai/resources/ [20:46:51] gulp-ssh :: shell :: rm -rf /home/lvchaocai/resources/qly-youche [20:46:51] gulp-ssh :: shell :: mkdir /home/lvchaocai/resources/qly-youche [20:46:51] gulp-sftp: Uploaded: 1.SpreadPlan.js => /home/lvchaocai/resources/qly-youche/1.SpreadPlan.js [20:46:51] gulp-sftp: Uploaded: 1.SpreadPlan.js.map => /home/lvchaocai/resources/qly-youche/1.SpreadPlan.js.map [20:46:52] gulp-sftp: Uploaded: 2.SpreadUnitEdit.js => /home/lvchaocai/resources/qly-youche/2.SpreadUnitEdit.js [20:46:52] gulp-sftp: Uploaded: 2.SpreadUnitEdit.js.map => /home/lvchaocai/resources/qly-youche/2.SpreadUnitEdit.js.map [20:46:55] gulp-sftp: Uploaded: app.js => /home/lvchaocai/resources/qly-youche/app.js [20:46:59] gulp-sftp: Uploaded: app.js.map => /home/lvchaocai/resources/qly-youche/app.js.map [20:46:59] gulp-sftp: Uploaded: favicon.ico => /home/lvchaocai/resources/qly-youche/favicon.ico [20:46:59] gulp-sftp: Uploaded: index.html => /home/lvchaocai/resources/qly-youche/index.html [20:46:59] gulp-sftp: Uploaded: vendor.js => /home/lvchaocai/resources/qly-youche/vendor.js [20:46:59] gulp-sftp: Uploaded: vendor.js.map => /home/lvchaocai/resources/qly-youche/vendor.js.map [20:46:59] SFTP Created: /home/lvchaocai/resources/qly-youche/src [20:46:59] SFTP Created: /home/lvchaocai/resources/qly-youche/src/styles [20:46:59] gulp-sftp: Uploaded: src/styles/iconfont.eot => /home/lvchaocai/resources/qly-youche/src/styles/iconfont.eot [20:46:59] gulp-sftp: 11 files uploaded successfully [20:46:59] Finished 'test' after 8.5 s [20:46:59] SFTP :: SFTP session closed [20:46:59] Connection :: end [20:46:59] Connection :: close

But I don't find the file 1.SpreadPlan.js on my target machine, and other files are uploaded successfully

Is there a way to fix this problem?