Line 9: |
Line 9: |
| 11th Jan 2018 | | 11th Jan 2018 |
| | | |
− | Current RPM in my repo is 0.59.6 | + | Current RPM in my repo is 0.60.4 |
| | | |
| https://reetspetit.com/smeserver/6/repoview/rocketchat.html | | https://reetspetit.com/smeserver/6/repoview/rocketchat.html |
Line 17: |
Line 17: |
| https://github.com/RocketChat/Rocket.Chat/tags | | https://github.com/RocketChat/Rocket.Chat/tags |
| | | |
− | {{Note box|Latest Development version is 0.60.4 but this is not working correctly due to upgrades to node and requiring a prebuilt fibers module. | + | {{Note box|Latest version is 0.60.4 |
− | It will work by starting it manually with 'node main.js'}}
| + | This requires node 8.x and a prebuilt module which the RPM should install}} |
| | | |
| ==Required repos== | | ==Required repos== |
Line 66: |
Line 66: |
| From Rocketchat 0.40 onwards you require a higher version of node than the one in the SCL repos. | | From Rocketchat 0.40 onwards you require a higher version of node than the one in the SCL repos. |
| | | |
− | Rocket.Chat v 49.0+ requires: | + | Rocket.Chat v 60.0+ requires: |
− | node: v4.7.2 | + | node: v8.9.3 |
− | npm: v3.10.9 | + | npm: v5.6.0 |
| | | |
− | This can be installed from the node repo | + | This can be installed from the node repo. The following is how to check and set up node versions manually - the rpm should sort this out for you. |
| | | |
| ===Setup node versions:=== | | ===Setup node versions:=== |
| | | |
− | Install node version
| + | Some of this is magic (to me!) and I still don't get the local and global stuff. Be careful with paths. See NPM Usage below for more. |
− | n 4.7.2
| |
| | | |
− | [root@test ~]# node -v
| + | The node rpm install node to /usr/bin but the npm 'n' module will install to /usr/local/bin |
− | v4.7.2
| |
| | | |
− | Install latest version:
| + | Check the version of node in /usr/bin |
− | npm install -g npm
| |
| | | |
− | Install specific version:
| + | [root@test ~]# node -v |
− | npm install -g npm@3.10.9 | + | v8.9.3 |
| | | |
| Install n version manager: | | Install n version manager: |
| npm install -g n | | npm install -g n |
| + | Install specific node version (which will go in /usr/local/bin)<syntaxhighlight> |
| + | n 8.9.3 |
| + | </syntaxhighlight>Install the LTS version<syntaxhighlight> |
| + | n lts |
| + | </syntaxhighlight>List available versions<syntaxhighlight> |
| + | n ls |
| + | </syntaxhighlight>Install latest version of npm: |
| + | npm install -g npm |
| | | |
− | [root@test ~]# npm --version | + | Install specific npm version: |
− | 3.10.9
| + | npm install -g npm@5.6.0 |
| + | Show the npm version<syntaxhighlight> |
| + | [root@test ~]# npm --version |
| + | 5.6.0 |
| + | </syntaxhighlight> |
| | | |
− | yum --enablerepo=centos-sclo-rh,epel install scl-utils rh-python34-python rh-mongodb26-mongodb rh-mongodb26-mongodb-server \
| + | === Install required rpms === |
− | GraphicsMagick
| + | <syntaxhighlight> |
| + | yum --enablerepo=centos-sclo-rh,epel install scl-utils rh-python34-python rh-mongodb26-mongodb rh-mongodb26-mongodb-server \ |
| + | GraphicsMagick |
| + | </syntaxhighlight> |
| | | |
| You should be able to install the smeserver-rocketchat RPM now | | You should be able to install the smeserver-rocketchat RPM now |
Line 137: |
Line 149: |
| use rocketchat | | use rocketchat |
| db.rocketchat_settings.update({"_id" <nowiki>: "SMTP_Host"}, {$set: {"value":"mail.yourdomain.com"}}) | | db.rocketchat_settings.update({"_id" <nowiki>: "SMTP_Host"}, {$set: {"value":"mail.yourdomain.com"}}) |
− | db.rocketchat_settings.update({"_id"</nowiki> <nowiki>: "From_Email"}, {$set: {"value":"admin@yourdomain.com"}})
| + | db.rocketchat_settings.update({"_id"</nowiki> <nowiki>: "From_Email"}, {$set: {"value":"admin@yourdomain.com"}}) |
− | exit</nowiki>
| + | exit</nowiki> |
| | | |
| Restart Rocket.Chat to be sure: | | Restart Rocket.Chat to be sure: |
Line 158: |
Line 170: |
| Check /var/log/rocketchat.log | | Check /var/log/rocketchat.log |
| | | |
− | Try running main.js | + | Try running main.js manually:<syntaxhighlight> |
− | /opt/Rocket.Chat
| + | export PORT=3000 |
− | node main.js
| + | export MAIL_URL=smtp://localhost:25 |
| + | export MONGO_URL=mongodb://localhost:27017/rocketchat |
| + | export ROOT_URL=http://my.smeserver.net/opt/Rocket.Chat |
| + | node main.js |
| + | </syntaxhighlight> |
| | | |
| ===SSL with Proxypass=== | | ===SSL with Proxypass=== |
Line 293: |
Line 309: |
| | | |
| db.rocketchat_settings.update({"_id" <nowiki>: "From_Email"}, {$set: {"value":"admin@yourdomain.com"}}) | | db.rocketchat_settings.update({"_id" <nowiki>: "From_Email"}, {$set: {"value":"admin@yourdomain.com"}}) |
− | db.rocketchat_settings.update({"_id"</nowiki> <nowiki>: "SMTP_Host"}, {$set: {"value":"mail.yourdomain.com"}})</nowiki>
| + | db.rocketchat_settings.update({"_id"</nowiki> <nowiki>: "SMTP_Host"}, {$set: {"value":"mail.yourdomain.com"}})</nowiki> |
| | | |
| | | |