Rocket.Chat
Rocket.Chat copied to clipboard
use pm2 instead of forever service
see tutorial https://www.digitalocean.com/community/tutorials/how-to-install-configure-and-deploy-rocket-chat-on-ubuntu-14-04 step 4, it used forever service. Can i use PM2? since hubot RC adapter is using PM2 anyway, if so, can i just code it in as the following? let me know if there is anything wrong with the code:
sudo npm install pm2 -g
cd Rocket.Chat
pm2 start rocket.chat
sudo env PATH=$PATH:/usr/local/bin pm2 startup -u safeuser