https://www.growthbook.io/ logo
#announcements
Title
# announcements
h

handsome-zebra-46141

08/31/2022, 4:25 PM
Are you able to update GrowthBook’s
config.yml
via an API? For example could I store my
config.yml
in a Git repo and upload it to GrowthBook through Github Actions when a change is made?
f

future-teacher-7046

08/31/2022, 6:01 PM
It's possible to do something like that. Instead of updating config.yml through an API though, you would just update the file directly. For example, on your host machine where you are running Docker, you have the git repo checked out with
config.yml
and you mount that inside your container. Then, either through polling or webhooks, you do a
git pull
and restart the container and it will get the latest changes.
h

handsome-zebra-46141

08/31/2022, 6:02 PM
I was thinking this could interact with cloud hosted GrowthBook?
Ideally, we would avoid self hosting due to the overhead of running a new technology (particularly MongoDB)
f

future-teacher-7046

08/31/2022, 6:04 PM
I see. Yeah, it's currently not possible to import config.yml programatically in GrowthBook cloud. We're currently building a REST API into the product and we can think about adding that as one of the endpoints we expose.
❤️ 1
h

handsome-zebra-46141

08/31/2022, 6:06 PM
That would be awesome. I think there's real value to being able to maintain metric definitions statically and managed via pull requests. Even just the 'code review' process is invaluable. Having SQL literate but non-data experts able to contribute metrics via a PR but make sure they're reviewed by an expert etc
19 Views