Extra Layering

If you’re setting the LONO_EXTRA env var to leverage the Lono.extra feature, it also activate an extra layer.

Example

export LONO_EXTRA=2

Vars

config/blueprints/demo/vars/base.rb
config/blueprints/demo/vars/dev.rb
config/blueprints/demo/vars/dev-2.rb    <= extra layer

Params

config/blueprints/demo/params/base.env
config/blueprints/demo/params/dev.env
config/blueprints/demo/params/dev-2.env <= extra layer

Seeing Layers Clearly

To see the layers being used, use the config.layering.show option.

config/app.rb

Lono.configure do |config|
  config.layering.show = true
end

With that turned on, you’ll see the found layers that will be used:

$ lono build demo
Building template
    config/blueprints/demo/vars/base.rb
    config/blueprints/demo/vars/dev.rb
    config/blueprints/demo/vars/dev-2.rb
    output/demo/template.yml
Building parameters
    config/blueprints/demo/params/base.env
    config/blueprints/demo/params/dev.env
    config/blueprints/demo/params/dev-2.env
    output/demo/params.json

This will only show found layers, which is what you want to see most of the time. To see all possible layers, see: Debugging Layering Docs.