I'm following your example, but I get this when I enter pm2 startup ubuntu on the deploy
[PM2] Init System found: systemd
PM2 detected systemd but you precised ubuntu
Please verify that your choice is indeed your init system
If you arent sure, just run : pm2 startup
[PM2] You have to run this command as root. Execute the following command:
sudo env PATH=$PATH:/home/deploy/.nvm/versions/node/v8.1.4/bin /home/deploy/.nvm/versions/node/v8.1.4/lib/node_modules/pm2/bin/pm2 startup ubuntu -u deploy --hp /home/deploy
When I enter the sudo path just given it asks for my password and it returns this:
deploy is not in the sudoers file. This incident will be reported.
I'm following your example, but I get this when I enter pm2 startup ubuntu on the deploy
[PM2] Init System found: systemd
PM2 detected systemd but you precised ubuntu Please verify that your choice is indeed your init system If you arent sure, just run : pm2 startup
[PM2] You have to run this command as root. Execute the following command: sudo env PATH=$PATH:/home/deploy/.nvm/versions/node/v8.1.4/bin /home/deploy/.nvm/versions/node/v8.1.4/lib/node_modules/pm2/bin/pm2 startup ubuntu -u deploy --hp /home/deploy
When I enter the sudo path just given it asks for my password and it returns this:
deploy is not in the sudoers file. This incident will be reported.
What am I doing wrong?