Changes

Jump to navigation Jump to search
877 bytes added ,  04:39, 18 April 2016
no edit summary
Line 128: Line 128:     
You can now visit Rocket.Chat at https://chat.yourserver.com. Rocket.Chat will notice that the URL that is being used to access Rocket.Chat has been changed, and will propose to change it to the new URL.
 
You can now visit Rocket.Chat at https://chat.yourserver.com. Rocket.Chat will notice that the URL that is being used to access Rocket.Chat has been changed, and will propose to change it to the new URL.
 +
 +
===Auto start Rocket.Chat at boot===
 +
To be able to auto start Rocket.Chat one could use the /etc/rc.d/rc.local file, but using the init system is cleaner and much more controlled. Nodejs has a small utilities (modules) that can create the correct init script based on your specific setup.
 +
 +
To install these Nodejs modules issue:
 +
npm install -g forever
 +
npm install -g forever-service
 +
and then generate and place the init script 'rocketchat' into /etc/rc.d/init.d:
 +
cd /opt/Rocket.Chat
 +
forever-service install -s main.js -e "ROOT_URL=https://chat.mycompany.local/ \
 +
MONGO_URL=mongodb://localhost:27017/rocketchat PORT=3000" \
 +
-p "/opt/rh/nodejs010/root/usr/lib/node_modules/forever/bin" rocketchat
 +
Please use the correct values in the command above from your specific setup.
 +
 +
Now you start/stop/status /etc/rc.d/init.d/rocketchat e.g.:
 +
/etc/rc.d/init.d/rocketchat status
 +
    
===LDAP Authentication===
 
===LDAP Authentication===

Navigation menu