Comment to 'Chat + and the mobile app'
  • BoonEx's ChatPlus Installation Instructions (Ubuntu with Apache) or (CentOS with Apache) is terrible. And I don't blame you!

    /opt : This directory is reserved for all the software and add-on packages that are not part of the default installation.

    Here's how-to *proper_setup (using 'michael' as an example), create folder called chat.plus inside /opt/...

    /opt/chat.plus/michael.com/ <= /michael.com/ is renamed from bundle. Ideal for those who have/want more than one chat server. Also, see example ownership...

    Folder Ownership

    /opt/ = root

    /chat.plus/ = root

    /michael.com/ = michael.com

     

    Copy example-start.sh and renamed to michael-chat.sh, in the file like this...

     

    #!/bin/sh

    export ROOT_URL=http://michael.com:3000/
    export MONGO_URL=mongodb://localhost:27017/michael
    export ADMIN_EMAIL=admin@michael.com
    export ADMIN_PASS=123456789
    export PORT=3000

    LOG=michael_chat.log

    node main.js 2>&1 >$LOG &

     

    If you have more than one chat server, use port like this... 3001, 3002, 3003, 3004, etc.

      

    *Credit goes to Geek-Girl