deploy.js
// stops psql and node services on the remote server
stops psql and node services on the remote server
stops psql and node services on the remote server
function stopRemoteServices() {
    return ssh.execCommand(
        'pm2 stop all && sudo service psql stop', {
        cwd: '/home/ubuntu'
    });
}
function stopRemoteServices ( ) { return ssh . execCommand ( 'pm2 stop all && sudo service psql stop' , { cwd : '/home/ubuntu' } ) ; }
stops psql and node services on the remote server
stops psql and node services on the remote server