Are you able to update GrowthBook’s `config.yml` v...
# announcements
h
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
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
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
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
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