Auto start Next.js with supervisor

I want to start Next.js development server on my computer when it starts. Usually, this is done using pm2, I wanted to do it with supervisors.

Install supervisor with command

Create file

My Next.js application is located in the directory /mnt/data/sites/learn/nextjs/todo, so I used the following configuration

In the file change “user=boby” to whatever username you want the application to run as.

To start the application, run

To see the application status, run

Back to supervisord

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *