Skip to content

Testing livechat changes with your local Rocket.Chat server

ear-dev edited this page Sep 23, 2021 · 2 revisions

In order to test livechat changes you need to build those changes into your local RocketChat server at build time. To do this you need to update your package.json and package-lock.json files so that it pulls your development branch during the build.

This is one very clean method of doing it:

  • First create and add the latest build files to your livechat branch, and push it all to git.
  • On your local machine where you are going to run Rocketchat server:
    • Edit package.json to remove the line for livechat
    • Run meteor npm install - this will remove livechat from package-lock.json
    • Edit package.json to include the line for livechat, but point it at your development branch in git (replacing where it was configured for develop)
    • Run meteor npm install - this will include your branch of livechat
    • meteor npm start - you will now be running a version of Rocketchat server that is using your livechat changes.
Clone this wiki locally