Hi, me and a friend teamed up for the MongoDB hackathon. And I'm super excited for it! With our idea, it seems like Realm would be the cool features to utilize for this.
It sounds like AWS Lambdas, so I kind of have an idea how this works. And so I was looking for a way to integrate github deployment to my Realm app. Turns out they do have that option! But I hit some roadblocks:
- In the docs, it says there should be an app configuration, but there were so many folders, which ones are actually required?
- What's the best way? To start with an empty repo or with the app config?
- I advise you guys to start with a repo with an /app and a realm_config.json inside it
- Link your github account in Realm.
It should practically look like that. Make sure the directory points to /app
(the docs says its on /dist, and that really confused me), and enable Automatic Deployment so that everytime you make changes in your repo, it will deploy here
- Then to populate your repo, go to Environment Tab, and choose Development, hit Save
- Go to History Tab, there should be a button saying:
Review Draft & Deploy
. Click that and deploy it, what it does is the changes merges to your repo and it populates your app directory
That should be it, let me know if this helped you,
Cheers!
FM
Top comments (0)