Skip to content
Shellbay

Runtimes · about 2 min · 3 steps

PM2 process manager

Keeps your Node.js apps running: restarts them if they crash and starts them again after a reboot.

Runs on

  • Debian / Ubuntu: supported
  • RHEL / Fedora: supported
  • Alpine: supported

Before you start

  • Run the Node.js LTS workflow first.

What it changes on your server

  • Installs PM2 7.0.4 globally from the npm registry.
  • Adds a boot service that starts PM2 as your account and restores the apps you saved with pm2 save.

What Shellbay asks you

Nothing. This workflow needs no details from you.

Steps

  1. Install PM2
  2. Start PM2 at boot as your account
  3. Check the boot service

Shellbay checks the server before the first step, and stops at the first step that fails.

When it's done

  • Start your app with pm2 start app.js, then run pm2 save so it comes back after a reboot.