gtg092x / gulp-sftp

Gulp SFTP Deploy
140 stars 61 forks source link

only index.html is uploaded #51

Closed bennypowers closed 8 years ago

bennypowers commented 8 years ago

changes in subdirs are not sent. the only file in my root is index.html

Have I misconfigured?

gulp.task( 'deploy', function () {

  return gulp.src('dist/*')
    .pipe(sftp({
      host: 'mydomain.com',
      user:'tech',
      remotePath:'/home/tech/htdocs/',
      auth: 'privateKey'
    }));
} );
bennypowers commented 8 years ago

Solved my own problem, needed to use globs:

gulp.task( 'deploy', function () {

  return gulp.src('dist/**/*')
    .pipe(sftp({
      host: 'mydomain.com',
      user:'tech',
      remotePath:'/home/tech/htdocs/',
      auth: 'privateKey'
    }));
} );