Giter Club home page Giter Club logo

Comments (5)

zensh avatar zensh commented on August 30, 2024

ssh.sftp('read' 执行成功了吗?
异步流很凌乱,gulp 肯定不知道何时结束

from gulp-ssh.

mice33 avatar mice33 commented on August 30, 2024

每一部都执行成功了, 我用的.on('end'不知道是否正确 , 但是现在卡在 好像是ssh没有关闭样的, 不会执行到以下反馈

[11:31:14] Finished 'test' after 3.05 s
[11:31:14] gulp-ssh :: End
[11:31:14] gulp-ssh :: Close

from gulp-ssh.

zensh avatar zensh commented on August 30, 2024

stream 和 回调嵌套太复杂了,应该重新整理一下逻辑。

目前 GulpSSH 没有提供自动关闭 ssh 连接的功能,而是由 gulp 任务完成后关闭进程时自动触发 ssh 关闭连接的。

这里,你的 gulp task 写得有问题,gulp 不知道任务什么时候结束,ssh 连接自然也不会关闭,直到超时。

from gulp-ssh.

mice33 avatar mice33 commented on August 30, 2024

对, 我觉得就是这个问题..
但是我现在这个逻辑应该按什么方式来写呢.

from gulp-ssh.

zensh avatar zensh commented on August 30, 2024

首先,必须 return stream,即:

return gulp.src('lst/*.lst')...

其次,建议分解成多个子任务。
最后,你必须先弄明白 stream 的组合。
总之,你得深入研究一下 stream。

from gulp-ssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.