O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Run

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required