EN | ES
This functionality is available from version 2.1.0-gradius onwards.
Introduction
The new version of the FlowEngine supports the integration with Git to store the developed flows, based in the NodeRED Project feature.
Once the project is activated, new elements will be shown in the menu of NodeRED, as well as a popup telling us that projects are available the first time you enter the UI with your user.
When creating a project we will have to select the name of our .json for the flows, user and mail related to the Git account. Then a local repository will be created.
This repository will be mounted in a persisted volume shared with the container in /tmp/[usuario]/[nombreProyecto].
How to use it
Every time you “deploy” a change in your flows, in the “history” tab we can see the changes we have made. There are two buttons, one to revert the uncommitted changes and the other to add the changes to a commit:
Once the changes are added, we can commit them by clicking the “commit” button below:
An origin can be set by clicking in the menu Projects -> Projects settings. In this example we have created a private project in GitLab and associated it to our project
When an origin is set, the pull/push buttons will appear in the history tab.
From this menu in the UI of the FlowEngine you can create and change between branches and pull/push your changes.
By clicking in a commit, a list containing the “diff” of all the components will be shown.