Chapter 13. Deploying to Heroku

The previous three chapters focused on hardening your project with automated testing. Now you’ll look at deploying the application to a production environment on Heroku.

Platform-as-a-Service

Heroku is a platform-as-a-service (PaaS). There are three major PaaSs available for deploying Node.js applications: Heroku, Nodejitsu, and Modulus. Enabling your application to work on a PaaS is a similar process between all these services. I’ll focus on Heroku because its currently the most popular PaaS and supports many heavily trafficked Node.js applications.

A PaaS is a service that abstracts away specific servers in favor of deploying applications. Deploying an application to a PaaS is much easier than configuring individual ...

Get Write Modern Web Apps with the MEAN Stack: Mongo, Express, AngularJS, and Node.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.