Julian,
being able to run different versions of node-red is by no means unique to the embedded version.
Personally, I just use the following package.json and nothing more:
{ "name" : "my-node-red-project", "version" : "0.0.1", "dependencies": {
"node-red": "~0.13.4", },
"scripts": { "start": "node node_modules/node-red/red.js --userDir ./data" }, }
Change the node-red version to whatever you want, add any additional nodes you want and all just works.
But still, all examples are useful - I just don't want to give the impression that it takes any more than it really does.
Nick On 11 May 2016 at 21:16, Julian Knight <j.kni...@gmail.com> wrote: Hi all,
Earlier today, Dave pointed out Nat's interesting template for running in "local mode" which makes it easier to run multiple instances.
This prompted me to do something I should have done ages ago and that is turn my own installation and project approach into a template and publish it.
Whereas Nat's approach runs a sub-process, I use a very standard node.js approach.
The main advantage to the embedded method is that you can run entirely independent instances of Node-Red that can even be at totally different version levels. All of your nodes and other modules can also be at different levels. You can also take more control of the Express server. It is also very easy to clone your installation, something I do regularly before updating node-red or key nodes or even before making significant changes to the flows.
More information in the readme. Please feel free to raise issues and suggest improvements, pull requests as always welcome.
Please note that this initial version is as yet untested as I ripped it out of a live installation and then tweaked it heavily - as usual never enough time to do things properly. I'll be testing as soon as I can and when I'm happy, I'll bump the version to v1.0.0 - if you are able to test, that would be great.
Assuming it works, it is really easy to get going, simply clone the github repository, full instructions and guide to tweaking in the readme. Regards, Julian.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.
|