I have a couple sites still using ColdBox 3.8 where I use the environments structure within the Coldbox.cfc to determine my environment. The regex I have set up works and I have not had any issues until yesterday. When going to the test site, CB wasn’t able to identify the site as test and ended up giving it the production configuration. I upgraded from Railo to Lucee 4.5 a few weeks ago but this is the first time its happened. It never happened before the upgrade and we were doing a lot of automated testing then.
Restarting the Lucee service resolved the issue with no code changes needed.
My question is has anyone else seen this kind of issue where the environment config works normally, and then stops for some reason? I don’t know if this is Lucee specific or just a random occurrence regardless of the application server. If you have seen it, any suggestions on how to resolve it or at the least, implement a failsafe?