Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy a Realm Object Server

I'm looking into using the new Realm Mobile Platform for a project of mine. I've gone through the guides and was able to get it up and running locally no problem. My question is, what's the best way to deploy the Realm Object Server so it can be run remotely? I read through the guide found here but didn't really understand it. I only have minimal experience deploying a rails app to heroku. How can I get it deployed to Heroku or a similar service? Any help is appreciated. Thanks!

like image 445
chetem Avatar asked Sep 29 '16 03:09

chetem


People also ask

What is Realm Object Server?

Realm Object Server provides synchronization of Realms between devices and provides authentication and access control services.

Is realm DB free?

The Realm mobile database with open source is being distributed free of charge since 2016. The company monetizes the project using the Realm Mobile Platform and the PAAS server solution.

What is RealmSwift?

Fast, Swifty data storage. Realm Swift is an easy to use alternative to SQLite and Core Data that makes persisting, querying, and syncing data as simple as working directly with native Swift objects.


2 Answers

It's hard to tell you what the "best" way is. There are always drawbacks and benefits to any setup, and everyone has different goals and objectives, so I don't think there is an objective "best way to run it," as you say.

The Realm Object Server doesn't support Heroku for the time being (or at least, no easy one-click-install integration). We know that this is something that people want, so it's on our radar, but I can't give you a definite answer as to when or even if we will do this one day.

The way most people run the Object Server is by running a virtual machine, and running the service inside of that. There are multiple ways to achieve this: start a virtual machine with your favourite cloud provider, and then install the Realm Object Server on top of that. Alternatively, Realm also provides an AMI image, which is Amazon lingo for "a pre-configured virtual machine image," that contains the Object Server pre-installed, and allows you to run your Object Server at the click of a button.

Please bear in mind that Realm Object Server is currently packaged for RHEL/CentOS 6 & 7, and Ubuntu 16.04.

Here are some links that should help you get started:

  • A basic tutorial on how to setup Ubuntu 16.04 on Digital Ocean
  • AWS' documentation on launching an EC2 instance from an AMI
like image 128
teotwaki Avatar answered Nov 16 '22 23:11

teotwaki


Try this image to run realm-objserct server on openshift online. https://hub.docker.com/r/viksgyl/realm-object-server/

like image 44
Vikas Avatar answered Nov 16 '22 22:11

Vikas