unblinking / recipe-report

🗃 recipe.report monorepo
https://www.recipe.report
GNU Affero General Public License v3.0
1 stars 0 forks source link

Process doesn't automatically restart on server reboot. #77

Closed jmg1138 closed 2 years ago

jmg1138 commented 2 years ago

Fixed.

Put the correct steps in the server building notes.

For some reason, I had copied instructions from somewhere that specified running the pm2 commands with sudo which is what caused the problem.

After running pm2 startup as the normal non-root user, it gives the only command that must be run with sudo. If you run pm2 startup with sudo it configures things under the root user, but it needs to be configured under the non-root user.

Working as expected after reboots now.