Dec 05, 2017

Serve static with PM2

Command (2.4.0+):

$ pm2 serve <path> <port>

For example:

$ pm2 serve /dist 80

By default, it displays 404.html from the serving directory when that happens (NOT configurable).