Closed oskarrough closed 10 years ago
Hi, how would you navigate your remote? Tried using cd with exec but no luck, it returns whatever is in the root, not my subfolder.
cd
exec
gulp.task('exec', function () { return gulpSSH .exec(['cd subfolder/', 'ls -a', 'pwd'], {filePath: 'commands.log'}) .pipe(gulp.dest('logs')); });
In the end I want to do
gulp build
/dist
I suggest you using gulp-rsync to upload a folder. sftp in gulp-ssh can only upload or get a simple file currently.
ah great, that worked. Thank you.
Hi, how would you navigate your remote? Tried using
cd
withexec
but no luck, it returns whatever is in the root, not my subfolder.In the end I want to do
gulp build
/dist
using gulp-ssh to a specific folder on my remote