Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

nuBuilder and GIT

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

nuBuilder and GIT

Unread post 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
kev1n
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

Unread post 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?
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

Re: nuBuilder and GIT

Unread post by shuray »

Could it be that the repository is not set to public? wrote:
yes, sorry.
try again
Giu
Posts: 87
Joined: Sat Jan 25, 2014 11:01 am
Has thanked: 9 times

Re: nuBuilder and GIT

Unread post 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?
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

Re: nuBuilder and GIT

Unread post 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
Post Reply