Hi List,
I'm trying to setup an EnvironmentProperty block in a module, so I can
define module-specific properties by environment. In a simple test, I
have copied what is in the default base Mach-II config, changed the
property name, added my own property, and attempted to load the
module. I get the following error, thrown around line 284 of
EnvironmentProperty.cfc:
An environment named 'test' is missing a required key named
'production' for the EnvironmentProperty in module 'template'.
I plan to dig further into this, but thought I'd ask the list in
parallel. It doesn't make sense because this same config works at the
base level -- the only differences are the name and the properties.
Here is what I have in the template module's properties config block:
<property name="template_environment"
type="MachII.properties.EnvironmentProperty">
<parameters>
<parameter name="defaultEnvironmentName" value="development" />
<parameter name="serverPropertyName" value="serverName" />
<parameter name="dev">
<struct>
<key name="environmentGroup" value="development" />
<key name="servers" value="localhost,
local.www.daveramsey.com" />
<key name="properties">
<struct>
<key name="templateProp" value="valueInDevTemplateEnvironment" /
>
</struct>
</key>
</struct>
</parameter>
<parameter name="test">
<struct>
<key name="environmentGroup" value="staging" />
<key name="servers"
value="
staging.www.daveramsey.com,
dev2.www.daveramsey.com" />
<key name="properties">
<struct>
<key name="templateProp" value="valueInTestTemplateEnvironment" /
>
</struct>
</key>
</struct>
</parameter>
<parameter name="prod">
<struct>
<key name="environmentGroup" value="production" />
<key name="servers"
value="app*.
www.daveramsey.com,
www.daveramsey.com" />
<key name="properties">
<struct>
<key name="templateProp" value="valueInProdTemplateEnvironment" /
>
</struct>
</key>
</struct>
</parameter>
</parameters>
</property>
Thanks!
Doug
http://www.daveramsey.com