Closed arashkay closed 9 years ago
exec
can not change directory as this issue: https://github.com/mscdex/ssh2/issues/186
You should use shell
method:
gulp.task('shell', function () {
return gulpSSH
.shell(['cd /home/thunks', 'git pull', 'npm install', 'npm update', 'npm test'], {filePath: 'shell.log'})
.pipe(gulp.dest('logs'));
});
Thanks! tested & perfect!
Firstly Thank You!
I am trying to automate my deployments and using: "gulp-ssh": "^0.3.3" and have something like this:
Output:
It keeps hanging and no error in my log file. Am I missing something? If I run the
cd /var/www/release_folder && npm install
command manually in my shell it works perfect.