node-sftp-deploy icon indicating copy to clipboard operation
node-sftp-deploy copied to clipboard

Callback won't be triggered

Open medianetic opened this issue 5 years ago • 0 comments

Ive used the following script:

var sftp = require('node-sftp-deploy'); let config = { "host": "example.com", "port": "22", "user": "example", "pass": "test", "remotePath": "/var/www/html/test/", "sourcePath": "./dist/" }

//Support Promise sftp(config).then(function(){ //Success Callback console.log("Finished"); });

Its copying the directory sucessfully, but the callback will never execute. The console just says: Authenticating with password.

medianetic avatar Sep 29 '20 10:09 medianetic