WebFaction
Community site: login faq

I'd like to install rocket.chat server on webfaction. I'm familiar w/ installing PHP apps, but rocket.chat is javascript/node.js based I believe. Anyone installed rocket.chat and can provide guidance?

Many thanks!

asked 01 Nov, 01:00

atticus
84
accept rate: 0%


Okay, this is how you can get Rocket.Chat running on our platform.

  1. Create a mongodb as per, https://docs.webfaction.com/software/mongodb.html?highlight=mongo#installing-mongodb However in step 4.5 set the value of 'roles' to 'root' as opposed to 'userAdminAnyDatabase'.

  2. Start your mongodb with this command (substituting your own particulars), $HOME/webapps/mongo_app/mongodb-linux-architecture-version/bin/mongod --auth --dbpath $HOME/webapps/mongo_app/data/ --port mongodb_PORT --fork --logpath $HOME/logs/user/mongodb.log

  3. Create a Node.js 8.12.0 app https://my.webfaction.com/applications/

  4. Install the required dependencies and install Rocket.Chat, cd $HOME/webapps/nodejs_app/ export PATH=$PWD/bin/:$PATH npm install -g inherits n mkdir -p tmp curl -L https://releases.rocket.chat/latest/download -o ./tmp/rocket.chat.tgz cd tmp && tar zxf rocket.chat.tgz cd ./bundle/programs/server && npm install mv $HOME/webapps/nodejs_app/tmp/bundle $HOME/webapps/nodejs_app/Rocket.Chat

  5. Start the Rocket.Chat app, cd $HOME/webapps/nodejs_app/ export PATH=$PWD/bin/:$PATH export MONGO_URL='mongodb://user:password@localhost:port' export ROOT_URL='http://yourdomain.com' export PORT='node_port' node $HOME/webapps/nodejs_app/Rocket.Chat/main.js

  6. Your ROOT_URL should display the setup wizard.

I hope this helps.

permanent link

answered 01 Nov, 02:17

NickR ♦♦
4165
accept rate: 19%

Thx for taking the time to share that! I'll give it a try.

(01 Nov, 04:39) atticus

I'm very close. I think MongoDB and Rocket.chat are installed and running. I think the problem I'm having is in step 5. For example, I'm not clear what to put for the ROOT_URL value. I don't want my domain root (http://yourdomain.com) to run rocket.chat. I need something like "http://yourdomain.com/rocketchat" I tried adding a website with the nodejs_app as the target application for "http://yourdomain.com/rocketchat", but that's not working. Just a little more explanation might help.

(01 Nov, 23:45) atticus

Try using a subdomain like chat.yourdomain.com

(02 Nov, 03:50) johns ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67
×12
×1

question asked: 01 Nov, 01:00

question was seen: 101 times

last updated: 02 Nov, 03:50

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM