Now that we have all our files built and ready, along with a production database and an environment-specific configuration file and our archive copied, we are finally ready to launch the application:
cd /var/www/webshop-jsNODE_ENV=production pm2 start index.js --name=webshop-js -- --port=8889pm2 save
You are now running all the minified code on the production database automatically on start up. Once again, browse to ciserver:8888 and verify that everything works. Try changing something in your production database and see that it reflects on the website.