When I run this command from my local machine...
ssh [email protected] "pm2 reload all"
I get this error...
pm2: command not found
Running the command in the remote machine works fine, so it's not a pathing issue?
you need to run the nvm to get it going first
ssh [email protected] "source ~/.nvm/nvm.sh && pm2 reload all"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With