Web Server: Difference between revisions
Jump to navigation
Jump to search
(→PM2) |
(→PM2) |
||
Line 1: | Line 1: | ||
===PM2=== | ===[[PM2]]=== | ||
If you are having issues with PM2 process manager serving the NextJs app (when <code>sudo npm run start</code> works fine), run: <code>sudo pm2 delete all</code>. | If you are having issues with [[PM2]] process manager serving the NextJs app (when <code>sudo npm run start</code> works fine), run: <code>sudo pm2 delete all</code>. | ||
This will end all processes. | This will end all processes. | ||
Then run <code>sudo pm2 start npm -- start</code> and that should cause [[PM2]] to serve correctly. | Then run <code>sudo pm2 start npm -- start</code> and that should cause [[PM2]] to serve correctly. |