Hi!
I have developed and currently use a tool for synchronization our nuBuilder instances with GIT repository.
Actually, the tool creates text files (format .yaml) from nuBuilder database objects and places them to special directory (which can be versioned by GIT or any other repository). This tool also makes changes to nuBuilder if yaml files are changed from outside.
A config file allows synchronize not only nuBuilder db objects, but custom source files too.
Each nuBuilder form is synchronized to single yaml file (the name zzzzsys_form_id), so it is easy to understand changes for code review.
Our instances run inside docker composes, so it was critically important to setup all docker containers to work it the same time zone for perfect synchronization. If you would try this tool - please take into account!
We have a cron schedule to run this synchronization tool every 30 seconds. So, our nuBuilder instance is synchronized with target directory every 0.5 minute.
The code of sync is PHP just because the PHP is a familiar environment for nuBuilders.
The Sync tool repository: gitLab
Thank you
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
nuBuilder and GIT
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: nuBuilder and GIT
Hi shuray,
This sounds interesting and thanks for sharing!
However, when I follow the link it says "Page not found".
Could it be that the repository is not set to public?
This sounds interesting and thanks for sharing!
However, when I follow the link it says "Page not found".
Could it be that the repository is not set to public?
Re: nuBuilder and GIT
yes, sorry.Could it be that the repository is not set to public? wrote:
try again
Re: nuBuilder and GIT
Wow, sounds so interesting. Could be used in any way to update objects from one nuBuilder instance (dev) to other (test/prod) without having to export and import the entire database?
Re: nuBuilder and GIT
Yes, of course.
now I'm working on refactoring, and in a week I will prepare come instruction