I have just added CFConfig support for Lucee 6 and...
# lucee
b
I have just added CFConfig support for Lucee 6 and its new JSON format. I would love some people giving it a test and seeing if all your config imports correctly. Lucee JSON has a lot of differences to the CFConfig JSON format so I'm not too certain I'm mapping all the values properly. Please report back anything you find. Install the latest version of CFConfig to test.
j
Last time I tried it in Docker (some version of Lucee 5, I think? sometime near the first introduction of cfconfig into the official Live docker container) I was thwarted by a combination of no docs and failed trial and error due to no docs. Could someone give a few bullets (or point me to a how-to) on applying a small, verbatim, known-good configuration in a docker container that I could then build on?
b
I'm confused-- the CFConfig support I just added would be for use in the Ortus CommandBox container, or some other custom container in which you were manually using CFConfig. It wouldn't apply to any of Lucee's images.
Lucee 5 has never had any native CFConfig support. Lucee 6 added a JSON file that's somewhat sort-of like CFConfig, but not really.
j
Okay, ignore, then. I could swear cfconfig support was quietly added (but only tangentially documented). The conversation must have happened on Slack because I can't find it and I could be misremembering it.
It could have been the cfconfig-esque JSON thing.
b
Something called "CFConfig support" was added to Lucee 6, but as I found today, Lucee's file they now call
.cfconfig.json
is only similar to the actual CFCOnfig JSON spec. It's got tons of differences
What I added today is the ability to use
server start
in CommandBox and for it to import settings in a
.cfconfig.json
file in your web root, or specified in your
server.json
or via
cfconfig_xxx
environment variables into the Lucee server's new JSON config file
But I have to do tons of mappings to convert the actual CFConfig format to Lucee's version of the JSON format
j
That's gotta be what I tried (the .
cfconfig.json
), and I must have tried it (and failed) with Lucee 6. Once of these days I'll probably bite the bullet and go with the CommandBox image. I don't love templating
lucee-web.xml
and
scheduler.xml
.
Well, sorry for the sidetrack. Thanks for adding the support to CB/L6. I may end up using it when upgrading to L6.
👍 1