My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Swapnil Wagh

3 likes

·

1.3K reads

1 comment

mohammad khosravi
mohammad khosravi
Feb 1, 2023

hi, thank you for this article, its very helpful. but i have a problem and i search for it but got no answer. i have a nextjs project and i deploy it with pm2 and nginx. it works properly and i set max instances for my project in cluster mode. but when i stop the first instance the website is going down and get 502 nginx error and other instances not working until i restart the other instance. why this happens? note: i use this command for start my project with pm2: pm2 start npm --name myproject -i -1 -- start

with regards

·