I need to run NextJs application on AWS ec2 amazon linux in background

33 Views Asked by At

I am using this command npx serve@latest out, "out" is the project folder name its run the project but when I logout from the terminal PuTTY it stops the application. I need to run the process in background. What steps do I need to do?

I am also trying via pm2 and trying to create env-variable, but no success.

I'm trying to run a nextjs app.

0

There are 0 best solutions below