question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

config node in config node

See original GitHub issue

I’m trying to get a series of custom nodes created where one config node includes another config node. A simple less specific example could be if you want to have a “host” config node that defines your server providing a couple of services - then you have several “service” config nodes and they all should point to the “host” config node and provide additional configuration on top. This is quite beneficial if your “host” needs to change and you need to update only once…

The issue I’m running into is that the UI appears to support this setup when I use in the config node something like this (in this case the “parent” config node defines an IoT sub-network):

    <div class="form-row">
        <label for="node-input-network"><i class="fa fa-globe"></i> Network</label>
        <input type="text" id="node-input-network">
    </div>

but the network information is not stored as part of the node config and therefore not accessible (or I don’t know how). What I thought would be the correct setup is unfortunately not working. The UI just shows a simple textbox instead of the config node selection UI:

    <div class="form-row">
        <label for="node-config-input-network"><i class="fa fa-globe"></i> Network</label>
        <input type="text" id="node-config-input-network">
    </div>

Not sure if this is an issue or actually a feature request (or I’m just not clever enough to get it to work).

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
knollearycommented, May 17, 2016

The ability to have config nodes under config nodes will arrive in the 0.14.0 release.

0reactions
sirockincommented, Oct 7, 2016

thanks @hardillb and @knolleary for replying so quickly. I’ll have a closer look at my code and the examples you gave me first and see if I can work it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure your Node.js Applications - GitHub
Node -config organizes hierarchical configurations for your app deployments. It lets you define a set of default parameters, and extend them for different ......
Read more >
How to Easily Set-up Node Config (Best Practices)
Node js config must be handled properly. This guide shows 5 powerful node config best practices that you should follow.
Read more >
Node-config tutorial - creating configuration files for ... - ZetCode
Node config supports various configuration file formats, including JSON, YAML, properties, or XML. The default configuration file is default.
Read more >
Configuration nodes - Node-RED
A common use of config nodes is to represent a shared connection to a remote system. In that instance, the config node may...
Read more >
How to store Node.js deployment settings/configuration files?
I have been looking for similar patterns for Node. Just a config file would be nice, so it does not have to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found