Created
January 8, 2022 04:51
-
-
Save ikidd/cb7181076e02e2d15cb91a753f08c1dc to your computer and use it in GitHub Desktop.
Nodered Git integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**Setting up Project addon** | |
In the user home folder/.node-red/settings.js change the EditorTheme.projects.enabled section to 'true' and restart NR. | |
Set up your project and in Settings-Git config, set up a new key and copy the public key to your git account. Create a repo on the account (private) to get the project files. Copy the keys it created from ~/.node-red/projects/.sshkeys to ~/.ssh | |
To connect to gitea instance: | |
add a file `~/.ssh/config` with the keynames you copied above | |
Host <gitea IP> | |
User git | |
Port 1222 | |
IdentityFile ~/.ssh/__default_gitea | |
IdentitiesOnly yes | |
At the commandline, attempt a ssh connection to populate the known_hosts with the github key. Do this under the username for the nodered service file user. | |
ssh -T git@<Gitea IP> | |
In the project folder under `~/.node-red/projects` execute the following to set up the git connection: | |
git config --global user.email <emailaddress> | |
git config --global user.name <gitusername> | |
git commit -m "first commit" | |
git remote add origin git@<giteaIP>:<gitusername>/<reponame>.git | |
git push -u origin master | |
restart nodered |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment