Hi everyone,
I was wondering if there’s a way in CB3 that I can change the default environment detection from domain over to a simple flag we can set it the configuration.
Bit of background info on the reason I’m asking…
Our production environment is setup to email our student. Otherwise in Development we want to stop that and email the Development Team member who’s testing the app.
That worked all fine until one team member started to access their Development box externally through its IP address rather than the localhost domain. ColdBox wasn’t recognising them so it reverted to the default “production”. You can probably guess when the phone started ringing what happened with the email
Anyway what I’d like to setup in the configuration is a flag. The default of which will be labelled as “Development”.
We use ANT for deployment so I want to get it to replace that token with whatever environment we choose on deployment. So deploying to production will replace “Development” with “Production”.
That way I’m not completely reliant on the domain name, which doesn’t seem to be 100% reliable
Cheers,
James
That in turn would load in the correct configuration.