Giter Club home page Giter Club logo

Comments (8)

zensh avatar zensh commented on August 30, 2024

How do you use gulp-ssh ?

from gulp-ssh.

jbouzekri avatar jbouzekri commented on August 30, 2024

This way :

var gulpSSH = new GulpSSH({
  ignoreErrors: false,
  sshConfig: config
});

gulp.task('dest', function () {
  return gulp
    .src(['./src/**/*'])
    .pipe(gulpSSH.dest('/mydestfolder/'))
});

from gulp-ssh.

zensh avatar zensh commented on August 30, 2024

It work well for me:

  gulp.task('dest', function () {
    return gulp
      .src(['*.pdf'])
      .pipe(gulpSSH.dest('/home/iojs/test/pdf/'))
  })
➜  gulp-ssh git:(master) ✗ gulp dest
[19:07:55] Using gulpfile ~/git/teambition/gulp-ssh/gulpfile.js
[19:07:55] Starting 'dest'...
[19:07:55] gulp-ssh :: Connect...
[19:07:55] gulp-ssh :: Ready
[19:07:55] Preparing to write "/home/iojs/test/pdf/从0到1.pdf"
[19:07:55] Creating directory '/home/iojs/test/pdf'
[19:07:55] Writing '/home/iojs/test/pdf/从0到1.pdf'
[19:07:59] Finished writing '/home/iojs/test/pdf/从0到1.pdf'
[19:07:59] Preparing to write "/home/iojs/test/pdf/操作系统教程.pdf"
[19:07:59] Writing '/home/iojs/test/pdf/操作系统教程.pdf'
[19:08:03] Finished writing '/home/iojs/test/pdf/操作系统教程.pdf'
[19:08:03] Finished 'dest' after 8.55 s
[19:08:03] gulp-ssh :: End
[19:08:03] gulp-ssh :: Close

from gulp-ssh.

jbouzekri avatar jbouzekri commented on August 30, 2024

Very strange. I don't have the full code I used right now. I will check later at home. Thanks for taking the time to do this small test.

from gulp-ssh.

jbouzekri avatar jbouzekri commented on August 30, 2024

Let me amend my issue. It seems the message "folder has not content. Skipping." is displayed but the files are transmitted.

from gulp-ssh.

zensh avatar zensh commented on August 30, 2024

Very strange. Other files work?

from gulp-ssh.

jbouzekri avatar jbouzekri commented on August 30, 2024

In fact, all the files worked. They are all sent to the server. However some folders log the message "has no content. Skipping" even if they are processed later. It happens with all kind of file type inside so I cannot extract a common pattern. Moreover, the files i am trying to transmit are private so I cannot send you the files and code to test.

So I think you can close this issue because I don't know how we can debug it.

from gulp-ssh.

zensh avatar zensh commented on August 30, 2024

🔢

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.