Page 1 of 1

nuBuilder and GIT

Posted: Wed May 29, 2024 7:53 am
by shuray
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

Re: nuBuilder and GIT

Posted: Wed May 29, 2024 8:06 am
by kev1n
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?

Re: nuBuilder and GIT

Posted: Wed May 29, 2024 8:55 am
by shuray
Could it be that the repository is not set to public? wrote:
yes, sorry.
try again

Re: nuBuilder and GIT

Posted: Tue Jun 04, 2024 1:43 pm
by Giu
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

Posted: Fri Jun 07, 2024 7:04 am
by shuray
Giu wrote: Tue Jun 04, 2024 1:43 pm 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?
Yes, of course.
now I'm working on refactoring, and in a week I will prepare come instruction