sudo npm install pm2 -g
The easiest way to test if everything, including NGINX, works is by going directly into our Jenkins workspace and starting our index.js file from there. I am assuming you have the entire pipeline example on your Linux VM:
cd /var/lib/jenkins/web-shop-pipelinepm2 start index.js --name=webshop-js -- --port=8889pm2 ls
Try browsing to ciserver:8888 in your Windows host again and you should now see your web shop!
Of course, we do not want to run our application from a Jenkins folder. Instead, we should get our files from Jenkins ...