Environment Property

0 views
Skip to first unread message

shuns

unread,
Nov 4, 2009, 6:36:17 PM11/4/09
to Mach-II for CFML
Hi Guys

I have just downloaded the 1.8 version and that has the new
environment properties available. I have read through the wiki and
have not been able to see any data regarding this point, but forgive
me if this has already been covered somewhere.

Basically what I would like to know is if the key mach-ii properties
such as applicationRoot urlBase etc are able to be defined per
environment?

This is because they vary from my development to production
environments. Is this possible?

Regards
Shaun
Net Grow

Peter J. Farrell

unread,
Nov 4, 2009, 7:11:58 PM11/4/09
to mach-ii-for...@googlegroups.com
The short answer is yes. A property in Mach-II is a property even if
it's a configuration property used by the framework.

N.B. Properties are loaded in the order they are defined. So put your
environment property near the top of your properties block.

shuns said the following on 11/04/2009 05:36 PM:

Net Grow - Shaun

unread,
Nov 4, 2009, 7:22:57 PM11/4/09
to mach-ii-for...@googlegroups.com
Thanks Peter,

That sounds good. I'm guessing where I place the values of the property, I
would be calling the keys the same name as if they were a root mach-ii
property for it to all work ok?

Regards
Shaun

Peter J. Farrell

unread,
Nov 4, 2009, 7:43:11 PM11/4/09
to mach-ii-for...@googlegroups.com
Yes.  I think the phrase explains it:

http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/EnvironmentSpecificProperities#properties

Net Grow - Shaun said the following on 11/04/2009 06:22 PM:

Net Grow - Shaun

unread,
Nov 4, 2009, 7:38:27 PM11/4/09
to mach-ii-for...@googlegroups.com
Cool, thanks

Sumit Verma

unread,
Nov 6, 2009, 2:48:51 PM11/6/09
to mach-ii-for...@googlegroups.com
Hi Peter,

What about MACHII_CONFIG_MODE? I tried it in the environment property but that didn't work. Is it suppose to work?

Thanks,
Sumit

Peter J. Farrell

unread,
Nov 6, 2009, 2:59:41 PM11/6/09
to mach-ii-for...@googlegroups.com
The MACHII_* variables in the bootstrapper are not Mach-II properties and therefore not interpreted by the environment property.  We've talk about ways to let you do this via the environment property but it's sort of a cart before the horse problem because the bootstrapper is what initializes the framework for you.

.pjf

Sumit Verma said the following on 11/06/2009 01:48 PM:
Reply all
Reply to author
Forward
0 new messages