Golden Codes - armanexplorer planet

Practical code snippets for Django, Python, Bash, Git and All!

View on GitHub

install on debian

Docs

Update docs

System Requirements

sudo apt -y update
# sudo apt -y upgrade

sudo apt install -y curl build-essential graphicsmagick

curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
tar xzf /tmp/rocket.chat.tgz -C /tmp

# WARNING: you should ensure this is running with the required node version (mostly 14.21.3)
# Solution: install this node version in `rocketchat` user and run the following with that user
sudo chown -R rocketchat:rocketchat /tmp/bundle
sudo su - rocketchat
(cd /tmp/bundle/programs/server; npm i)
exit

systemctl stop rocketchat

# if some old version exists, back it up first!
sudo mv /opt/Rocket.Chat /opt/old-Rocket.Chat

# prepare new version
sudo mv /tmp/bundle /opt/Rocket.Chat
sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat

systemctl start rocketchat

check node and mongodb versions

Docs

Use like this:

curl https://releases.rocket.chat/latest/info -s | jq '.nodeVersion' -r

install with docker

Docs

backup and restore

Docs

Mongodump

Mongorestore

mongodump --gzip --archive=pathDatabase.gz
mongorestore --gzip --archive=pathDatabase.gz