Replies: 1 comment 1 reply
-
I use pm2 for this very thing. I am able to restart my server with no downtime via |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Next.js app built on my cloud VM running Ubuntu. I use the documented commands to build and run:
$ npm run build
$ npm run start
My question is, how do I restart after running a new build. Currently I have to find the pid's and issue a kill and run start again. Is there another way? I was hoping there was an npm run restart or stop, but digging into the code, I don't see that option.
Beta Was this translation helpful? Give feedback.
All reactions