Setting up 2 Chat+ on same dedicated Server ?

I was told we can create more than one Chat+ on same server. So how do we do that ?

Creating 2 different mongo DBs for 2 Chat+ Mods on same server

------------------------------------------------------------------------------------------------ 

Please note, I have 2 sites running on same dedicated server.  I installed 1st Chat+ under this folder /opt/chat/chat-1
and planning to install 2nd Chat+ under this folder /opt/chat/chat-2

First installation went well - created a mongodb database by default called rocketchat (see below)

> show dbs
admin            0.000GB
local               0.000GB
rocketchat  0.003GB

But, when I install 2nd Chat+, how do I make sure the 1st db rocketchat doesn't get overwritten ? How to install 2nd Chat+ with a different db name - lets call it rocketchat2 ?

Using 2 different ports for each Chat+ installation

---------------------------------------------------------------------------- 
My first installation works well using Port 3000 - How do I use a different port for the 2nd Chat+ installation ?

Thanks.





 

Quote · 20 Feb 2017

When you start your second instance of Chat server for the first time you need to set different port and database than your first instance in example-start.sh, for example:

...
export ROOT_URL=http://your-domain.com:3002/
export MONGO_URL=mongodb://localhost:27017/rocketchat2
...
export PORT=3002
...

 

Rules → http://www.boonex.com/terms
Quote · 20 Feb 2017

 

...
export ROOT_URL=http://your-domain.com:3002/
export MONGO_URL=mongodb://localhost:27017/rocketchat2
...
export PORT=3002
...

Indeed, it worked like a charm.. I also checked my mongodb, I can see 2 DBs one for site1 & other for site2. Now I have 2 Chat+ running independently for each website on same dedicated server.. I am loving it :)

Now when I run:  pidof node, I see 2 PIDs which is what I expected, but how do I know which PID belongs to which Chat+ ?  just in case I don't kill the wrong chat.. 


Thanks so much Alex for your help ! 

 

Quote · 25 Feb 2017
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.