Site Building

Get Ready for Production with Node.js for Drupal 7

This page is archived

We're keeping this page up as a courtesy to folks who may need to refer to old instructions. We don't plan to update this page.

Sprout Video

Once you're happy with your Node.js setup in a local development environment, there are some further steps to take before running this set up in a production environment.

While not a requirement, I would highly recommend you use an SSL certificate, and configure your Node.js application and the Drupal Node.js module to run in HTTPS. You can read more about SSL certificates at The Linux Documentation Project.
Up until this point, we have been starting our Node.js application manually, from the command line. This is not a good method for a production environment, so we'll use PM2 to manage the running of our application.

In this lesson, I will show you how to:

  • Install PM2, a Node.js module to manage your Node applications
  • Configure PM2
  • Add SSL configuration for the Node.js server
  • Start up our Node.js application with PM2

Additional resources

SSL Certificates (The Linux Documentation Project)