Articles tagged in: PM2



PM2 — Create Multiple Environments in Process File (JSON/JS/YAML)

PM2 gives you the opportunity to create advanced application configurations, also known as a process file or ecosystem file. Within those process files, you can define environment variables and make them only available to the related application. Even further, PM2 provides the feature to create multiple environments with completely different …

Continue Reading

PM2 — Series Round-Up

It has been a long journey to this last planned post of the PM2 series. We want to wrap up the series and hope you’ve learned a lot throughout the weeks. Every new article covered a separate topic and should help you to improve your application process management on …

Continue Reading

PM2 — Module System

The previous published posts within this series, you’ve learned about the built-in features of PM2. This week, we’re going to explore a very handy feature of the utility: a built-in module system. This module system allows you to add custom functionality to PM2 by installing modules to PM2 …

Continue Reading

PM2 — Command Line Autocompletion

Everyone is seeking for productivity boosts day by day, like learning new shortcuts in your favorite IDE, a new command on the Unix shell or something else. If you’re just starting out or already familiar with PM2 commands, it’s always nice to have an auto-completion feature. This post …

Continue Reading

PM2 — Log Handling

Log handling is an essential key factor in process management. Even though you might not be interested in your logs if everything went smooth. Wait for your first downtime and app failures and you’ll find your fastest way to get proper information about the current application situation within your …

Continue Reading

PM2 — Advanced App Configuration with JSON File

Within this article, we’re going to explore an advanced way to declare and start your applications. If you read the previous article on process management with PM2, you’re familiar with starting applications from command line. PM2 offers another way to start applications: by using an app declaration file …

Continue Reading

PM2 — Cluster Mode and Zero-Downtime Restarts

You’ve already learned how to start, stop, or delete application processes with PM2. There is a major downside having only one app process running: app updates. Deploying updates to your application requires a restart to make the changes available to every visitor. These app restarts will cause a downtime, …

Continue Reading
Page 1 of 2

Explore the Library

Find interesting tutorials and solutions for your problems.

Miscellaneous