Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NotCoderJack opened this issue May 31, 2018 · 0 comments
Open

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

NotCoderJack opened this issue May 31, 2018 · 0 comments

Comments

@NotCoderJack
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant