deploy.js
// restart psql and node services on the remote server
restart psql and node services on the remote server
restart psql and node services on the remote server
function restartRemoteServices() {
    return ssh.execCommand(
        `cd ${app_folder_name} && sudo service psql start && pm2 start app.js`, {
        cwd: '/home/ubuntu'
    });
}
function restartRemoteServices ( ) { return ssh . execCommand ( ` ${ app_folder_name } ` , { cwd : '/home/ubuntu' } ) ; }
restart psql and node services on the remote server
restart psql and node services on the remote server