Answer the question
In order to leave comments, you need to log in
How can I set up gulp-sftp so that it doesn't create/delete a connection each time?
When developing, I use the gulp collector, which, every time the working files change, automatically processes them and uploads them to the server using the gulp-sftp plugin (which, in turn, uses ssh2 - https://github.com/mscdex/ssh2).
This is very convenient, however, every time you download the plugin creates a new ssh connection, and when the download is completed, it breaks it, which takes quite a lot of time.
There are no such connection settings in the options for the plugin. Question to experienced colleagues - can anyone come across how you can force the plugin to open and keep the connection? Well, or at least set some time interval during which it will not break.
Alternatively, can you recommend alternative plugins with similar functionality, where you can work in the way I described?
Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question