How To Set Up a Node.js Application for Production

Node.js is an open-source JavaScript runtime environment for building server-side and networking applications. In these guides we’ll set up a production-ready Node.js environment on a single server. This server will run a Node.js application managed by PM2, and provide users with secure access to the application through an Nginx reverse proxy and HTTPS using a free certificate provided by Let’s Encrypt. Choose your operating system below to get started.

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel