Hi, everyone!
Thanks for the reply.
About manually versioning on git:
[TL;DR]Given that I've got this node-red environment:
..
30 May 17:44:46 - [info] Settings file : /Users/roalcantara/.node-red/settings.js
30 May 17:44:46 - [info] User directory : /Users/roalcantara/.node-red
30 May 17:44:46 - [info] Flows file : /Users/roalcantara/.node-red/flows.json
..
In order to be able to restore this flow completely in another environment (server/docker/whatever), all the `
/Users/roalcantara/.node-red` folder should be versioned, right?
[/TL;DR]
Now, just to clarify, I've come to realize that the customer need is a little bit more complex from what I've thought:
[LR]
I'm still studying my customer need - which is quite complex - but it is, basically:
0) Background:
Given a dev, staging, and production node-red instances (simple put: env) are up and running.
And a git repository with a staging and master branches.
1) Permissioning:- Users can only edit flows on node-red dev env;
- Flows deployed on both staging, and production node-reds envs should not be editable by users.
2) Versioning:- Users should commit and push flows to the staging branch;
- Users should list the flow's history changes containing author, created_at, and commit message;
- Users should restore a flow version (commit, tag) completely in the dev environment;
3) Continuous Deployment- When a commit is pushed to the staging branch, a deployment to the staging environment should be fired.
- When a commit is merged with the master branch, a deployment to the production environment should be fired.
There is a lot more, actually - this is kinda draft.
At first, we will try to do all this "manually", using Git Kraken or something to validate this business process.
Then, we might try to create a custom Node trying to do these stuff on the red-ui-tab on node-red.
[/LR]
What you folks reckon?
Cheers.
BTW: