By matthew6d
I’ve been following this tutorial for getting Rocket.Chat running and the only problem I have is getting rocket.chat as a service.
This is the command I entered into the terminal. I made sure I was in the /Rocket.Chat directory.
sudo forever-service install -s main.js -e "ROOT_URL=https://xxx/ MONGO_URL=mongodb://localhost:27017/rocketchat PORT=3000" rocketchat
(I x’d out the domain name because I don’t want it public.)
After I run that command I get this:
forever-service version 0.5.9
Platform - Ubuntu 14.04.5 LTS
runuserpath not found
Adding system startup for /etc/init.d/rocketchat ...
/etc/rc0.d/K20rocketchat -> ../init.d/rocketchat
/etc/rc1.d/K20rocketchat -> ../init.d/rocketchat
/etc/rc6.d/K20rocketchat -> ../init.d/rocketchat
/etc/rc2.d/S20rocketchat -> ../init.d/rocketchat
/etc/rc3.d/S20rocketchat -> ../init.d/rocketchat
/etc/rc4.d/S20rocketchat -> ../init.d/rocketchat
/etc/rc5.d/S20rocketchat -> ../init.d/rocketchat
rocketchat provisioned successfully
Commands to interact with service rocketchat
Start - "sudo service rocketchat start"
Stop - "sudo service rocketchat stop"
Status - "sudo service rocketchat status"
Restart - "sudo service rocketchat restart"
After that I ran this command:
sudo service rocketchat start
And this is the output I get:
Starting rocketchat
When I go to my Rocket Chat url, it isn’t running at all. If I stop the service and run “node main.js” in /Rocket.Chat the service will run normally.
Does anyone know what the problem is? Thank you!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @matthew6d
I have never used forever, but could you try PM2 instead?
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.