BoxLang 🚀 A New JVM Dynamic Language Learn More...
This module reads the Java System properties (java.lang.system.getProperties()
) and loads the values into the ColdBox settings.
box install cbox-properties-loader
All your properties will be loaded by default.
You can access these in your ColdBox app by using getSetting("PROPERTY_NAME")
or by injecting it with property name="secret" inject="coldbox:setting: PROPERTY_NAME";
.
[box install commandbox-dotenv](https://www.forgebox.io/view/commandbox-dotenv)
Adds the contents of a .env
file to your Java System properties when using CommandBox servers.
$
box install cbox-properties-loader