How to work with Git in FlowEngine
This functionality is available from version 2.1.0-gradius onwards.
Introduction
The new version of the FlowEngine supports the versioning of the flows developed from the NodeRED Project concept.
Once the project is activated, new elements will be shown in the menu of NodeRED, as well as a pop-up notification telling us that projects are available the first time you enter the UI with your user.
When creating a project, you will have to select (apart from a name and what you want your stream .json to be called) a user and email to associate it with GIT, since it will create a local repo where you can store the commits.
This local repository will be mounted in a persisted volume shared with the container in /tmp/[usuario]/[nombreProyecto].
How to use it
When you are working and "deploying", in the new "history" tab you can see the changes that you have been making on your flows. There are two buttons, one to revert all uncommitted changes and one to add the changes to the commit:
Once added, you can commit just below, adding the message you want:
From the menu Projects -> Projects settings, you can add an origin. In the example, we have created a private project in GitLab and associated it:
When you have an associated origin, you will see, in the history part, the possibility, not only to see the commits, which are already seen by default without the associated origin, but also to pull or push:
From the same "history" menu in the FlowEngine UI, you can create and change branches and push/pull your changes.
It also makes it easy to see diff's in commits. If you click on a commit, a list appears with all the components and what has changed:
Â