Install node from local machine (without use of manage palette) in node-red server host on IBM cloud

We are using node-red hosted on IBM cloud. We have create one custom node that we want to install and use it on our node-red server.

We know that that can be achieve by publish our custom node on npm and we can install it from npm.

We do not want to publish this node over npm as it available to use for all users.

Can anyone help me know how can we do this?

Hi @Jignesh

to do this you would need to use the continuous delivery feature in IBM Cloud to add you node's files to the git repository for your application. You should put the files under the existing nodes directory. Then make sure you add any npm dependencies your node has to the package.json file. Once you commit those changes and push them back, the delivery toolchain will run and redeploy your application and your nodes should be available.

1 Like

Thanks @knolleary

Is CI/CD only the option? actually, our client does not allow us do this.

Can it achieve by SSH command prompt available in IBm Cloud? I did not get any help over internet for the same topic

If you ssh into the running application and copy the files over, you are updating the current running instance. The next time the application is restarted, any changes to the filesystem will be lost as the image reverts back to the built image. This is why you need to make your changes in the git repository because you need them to part of the build image.

This is not specific to Node-RED - it is how you work with Cloud Foundry applications (CF being the environment you have Node-RED deployed in as part of IBM Cloud).

Thanks @knolleary

This topic was automatically closed after 60 days. New replies are no longer allowed.