DEV Community

Discussion on: Setup a Next.js project with PM2, Nginx and Yarn on Ubuntu 18.04

Collapse
 
danielsdesk profile image
danielsdesk

is the --interpreter bash flag necessary? I've never seen this need to be used when running next.js with pm2 before

Collapse
 
mittalyashu profile image
Yashu Mittal • Edited

In the recent version of pm2 (as of this date), you don't need to use --interpreter flag.

You can directly use pm2 start "yarn server".