Hello @sean I followed these instruction and all worked fine so far. I have one problem tho:
after installing pm2 said:
Make pm2 auto-boot at server restart:
$ pm2 startup
When I run it it says (replaced shell user name):
[PM2] Init System found: systemd
[PM2] To setup the Startup Script, copy/paste the following command:
sudo env PATH=$PATH:/home/{SHELLUSERNAME}/.nvm/versions/node/v14.17.0/bin /home/{SHELLUSERNAME}/opt/pm2/node_modules/pm2/bin/pm2 startup systemd -u {SHELLUSERNAME}--hp /home/{SHELLUSERNAME}
So I run the command but I get the following error:
{SHELLUSERNAME}is not in the sudoers file. This incident will be reported.
which is to be expected... but I hope there is another "hook" to attach pm2 to so it can restart when the server restarts?
could you help me with that? thanks!