Snaps

Installation

Snap is pre-installed in most modern distributions. If it is not, please read snap's official documentation on how to install snap.
Installing Rocket.Chat with snap on Ubuntu is as easy as executing:
1
sudo snap install rocketchat-server
Copied!
Then browse to http://localhost:3000 and setup Rocket.Chat.
The above command should install the latest version available. You can also specify install by track.
Snaps are secure. Rocket.Chat and all of its dependencies are isolated from the rest of your system. Snaps also auto-update when we release a new version. So no need for more hassle updating.
To move between different major releases, from 2.x to 3.x or from 3.x to 4.x, take a look at snap tracks.

Configuration

To configure snap variables for your Rocket.Chat server:
To see the list of snap variables to configure for your Rocket.Chat server, run:
1
snap get rocketchat-server
Copied!
A list of variables is displayed
1
Key Value
2
backup-on-refresh disable
3
ignore-errors false
4
mongo-oplog-url mongodb://localhost:27017/local
5
mongo-url mongodb://localhost:27017/parties
6
port 3000
7
siteurl http://localhost:3000
Copied!
Setting one is done by simply executing
1
sudo snap set rocketchat-server <variable-name>=<value>
Copied!
Export as PDF
Copy link