Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Document how to update the Rocket.Chat without losing data?

Open souliyo opened this issue 10 years ago • 7 comments

Hello guys,

I couldn't find the document in wiki page about how to update the Rocket.Chat server side. Does any one have any tip or any way that you are using that work very well without losing the data?

FYI: I am using heroku but if other people have the way for other server or cloud service I am willing to learn from you

Thank you

souliyo avatar Dec 25 '15 21:12 souliyo

@souliyo ... see the deployment section here and choose your cloud service: https://github.com/RocketChat/Rocket.Chat/wiki

To keep data between updates, you will have to host and manage your own MongoDB instance, or use one of the many service providers - such as MongoLabs. If you decide to continue Heroku, set the MONGO_URL environment to point to your managed MongoDB instance.

Sing-Li avatar Dec 26 '15 11:12 Sing-Li

The heroku documentation does not explain how to update

synotna avatar Feb 11 '16 13:02 synotna

+1

heymarkreeves avatar Mar 07 '16 22:03 heymarkreeves

If you fork Rocket.Chat to your own GitHub account, you can authorize Heroku to access your GitHub account, and do a manual deploy of branch master to your Heroku app, all within the Heroku web UI. This is all under the Deploy tab in your Heroku app. @synotna

heymarkreeves avatar Mar 08 '16 14:03 heymarkreeves

Good to know, for now I've come up with:

    git checkout master
    git fetch rc
    git pull rc release-tag
    git reset --hard release-tag
    git push -f heroku master

synotna avatar Mar 11 '16 13:03 synotna

Will the update and deployment via my cloned repo retain the branding customisation that I have done? @circa1977

vbasky avatar Oct 03 '17 05:10 vbasky

for update from source you need to run on ubuntu 16.04: curl -L https://rocket.chat/releases/latest/download > rocket.chat.tgz tar -xzvf rocket.chat.tgz mkdir -p /var/www/ mv bundle Rocket.Chat mv Rocket.Chat /var/www/ cd /var/www/Rocket.Chat/ cd programs/server/ npm install cd /var/www/Rocket.Chat/ npm install -g forever npm install -g forever-service

forever-service install -s main.js -e "ROOT_URL=https://localhost MONGO_URL=mongodb://localhost:27017/rocketchat MONGO_OPLOG_URL=mongodb://localhost:27017/local PORT=3001" rocketchat1

service rocketchat1 start

This is for one instance, if you whant to make multi instances put on port 3001...3005 and rocketchat1...5 to make 5 instances and off course use proxy(haproxy, nginx). All settings for rocketchat is save on mongodb.

dmoldovan123 avatar Oct 03 '17 06:10 dmoldovan123