CHAPTER 11

image

Deploying Node.js Apps

As we approach the end of the book, there’s a vital step we have to explore: the deployment itself. To help you navigate between PaaS and IaaS options, and have some scripts you can use on your servers, we cover the following topics:

  • Deploying to Heroku (PaaS)
  • Deploying to Amazon Web Services (AWS)
  • Keeping Node.js apps alive with forever, Upstart, and init.d
  • Serving static resources properly with Nginx
  • Caching with Varnish

Deploying to Heroku

Heroku (http://www.heroku.com) is a polyglot Agile application deployment Platform as a Service (PaaS). The benefits of using PaaS over other cloud solutions include the ...

Get Practical Node.js: Building Real-World Scalable Web Apps 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.