Skip to content

Instantly share code, notes, and snippets.

@hpgsantos
Last active February 27, 2018 00:39
Show Gist options
  • Save hpgsantos/d64f3e42bae7649df9447e637a19b6a7 to your computer and use it in GitHub Desktop.
Save hpgsantos/d64f3e42bae7649df9447e637a19b6a7 to your computer and use it in GitHub Desktop.

Rocket chat compilation

Header

git clone https://github.com/RocketChat/Rocket.Chat.git

cd <ROCKET_CHAT_DIRECTORY>

First Step

***meteor npm install ***meteor add rocketchat:sale-integration

meteor npm install --save
sudo rm -r ~/var/www/bundle
sudo rm -r ~/var/www/Rocket.Chat
meteor build --server-only --directory ~/var/www
mv ~/var/www/bundle ~/var/www/Rocket.Chat

Second Step

cd ~/var/www/Rocket.Chat/programs/server
meteor npm install --save
cd ../..
export ROOT_URL=http://localhost/
export MONGO_URL=mongodb://localhost:27017/gerentedigitalchat
export PORT=3000
node main.js

Nodejs

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs

Problems

  1. git clone -b master --single-branch https://github.com/RocketChat/Rocket.Chat.git
  2. sudo apt-get install g++ build-essential
  3. npm install -g node-gyp
  4. cd programs/server/node_modules/fibers/ node-gyp rebuild cp build/Release/fibers.node bin/linux-x64-57/fibers.node

Rocket chat edit tabs

Filter buttons

*** /Rocket.Chat/packages/rocketchat-ui-flextab/client/flexTabBar.js

    const buttons = RocketChat.TabBar.getButtons().filter(button => {});

Comment unwanted tabs refs (only above step can be applied)

*** /Rocket.Chat/packages/rocketchat-ui-flextab/package.js

/*
  api.addFiles('client/tabs/inviteUsers.html', 'client');
  api.addFiles('client/tabs/membersList.html', 'client');
  api.addFiles('client/tabs/messageSearch.html', 'client');
  api.addFiles('client/tabs/uploadedFilesList.html', 'client');
  api.addFiles('client/tabs/userEdit.html', 'client');
  api.addFiles('client/tabs/userInfo.html', 'client');
*/
    
/*
  api.addFiles('client/tabs/inviteUsers.js', 'client');
  api.addFiles('client/tabs/membersList.js', 'client');
  api.addFiles('client/tabs/messageSearch.js', 'client');
  api.addFiles('client/tabs/uploadedFilesList.js', 'client');
  api.addFiles('client/tabs/userEdit.js', 'client');
  api.addFiles('client/tabs/userInfo.js', 'client');
  api.addFiles('client/tabs/keyboardShortcuts.html', 'client');
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment