Connecting to prior Compose.Io database after deploying RocketChat with Heroku
Your Rocket.Chat version: 0.44.0
I had been using Rocket.Chat on a Digital Ocean droplet and connecting to a Compose.Io database. This was all working fine, but I was also running Rocket.Chat 0.32.0. Very old stuff which I believe was on Meteor 1.2 or 1.3.
I finally decided to upgrade to the latest but struggled like hell to get the new Rocket.Chat running. I found what appeared to be a simple solution: use the Heroku one-click install! I successfully got Rocket.Chat running but now I need to link it to my Compose.Io database. Any ideas on how to achieve this?
I did see an "Add-on" for Compose, but it looks like that just creates a new kind of database within Heroku and what I really want is to sync to my existing one on Compose.Io.
More notes:
I'm able to pull up a list of "Config Variables" for the Heroku app. In this list, there are a couple that look like they are database related:
MONGODB_URI:
MONGOHQ_URL:
And I know when I use MUPX with Digital Ocean to deploy, there is a file that lists the MONGO_URL: MONGO_OPLOG_URL:
Is it just a matter of replacing those old ones with the new ones?
Fixed it!
Basically solved it as described. I used the environmental variables from mupx.json and put them in manually as environmental variables on my Heroku app. Didn't have any need for the Compose Add-on and save a few bucks a month sticking with my regular Compose deployment.