jamiejackson
07/10/2023, 4:28 PM/opt/lucee/web/lucee-web.xml.cfm mappings reflected in the Lucee admin, and vice versa?
In my docker container, I've got a custom lucee-web.xml.cfm with some mappings defined. The custom ones are not showing in the admin. Likewise, if I add mappings via the Lucee admin, they're not reflected in lucee-web.xml.cfm.zackster
07/10/2023, 4:28 PMzackster
07/10/2023, 4:29 PMjamiejackson
07/10/2023, 4:29 PMjamiejackson
07/10/2023, 4:30 PMlucee only looks for a web.xml if there's a server.xmlDoes 6 ship without a
server.xml?zackster
07/10/2023, 4:31 PMzackster
07/10/2023, 4:31 PMjamiejackson
07/10/2023, 4:32 PMcfconfig.json. i was just about to mention how tired i am of hacking the xml config files in my docker containers.jamiejackson
07/10/2023, 4:34 PMcfconfig.json support begin in lucee 6 (or do any of the 5.x versions support it)?jamiejackson
07/10/2023, 4:36 PMserver.xml in place, along with my custom lucee-web.xml.cfm, will i find a cfconfig.json somewhere in the filesystem? (wondering what that auto-migration process looks like.)zackster
07/10/2023, 4:37 PMzackster
07/10/2023, 4:37 PMzackster
07/10/2023, 4:37 PMzackster
07/10/2023, 4:38 PMjamiejackson
07/10/2023, 4:39 PMa 6 server will read in the .xml files and write out CFconfig.jsonsso long as i've got a
serverxml in place?
but like everything else, 5.4.x has better supporti'm on 5.4 in prod as of a couple weeks ago, btw.
zackster
07/10/2023, 4:39 PMzackster
07/10/2023, 4:40 PMjamiejackson
07/10/2023, 4:40 PMzackster
07/10/2023, 4:40 PMzackster
07/10/2023, 4:40 PMjamiejackson
07/10/2023, 4:41 PMcfconfig.json support, btw.zackster
07/10/2023, 4:41 PMzackster
07/10/2023, 4:42 PMzackster
07/10/2023, 4:42 PMjamiejackson
07/10/2023, 5:38 PMlucee-server.xml from a 5.4 container and docker COPY-ed it to /opt/lucee/server/lucee-server/context/lucee-server.xml in my 6 image. i still have my custom lucee-web.xml where it's always been.
however, i'm still not seeing my custom mappings in the lucee web admin.
`out.log`: https://gist.github.com/jamiejackson/d0088116ba7f805ef91475a3e8ab1841
any guess as to what i'm doing wrong?zackster
07/10/2023, 6:05 PMjamiejackson
07/10/2023, 6:15 PMjamiejackson
07/10/2023, 8:00 PMconfigImport()?zackster
07/10/2023, 8:08 PMjamiejackson
07/10/2023, 9:07 PMjamiejackson
07/10/2023, 9:07 PMjamiejackson
07/10/2023, 9:13 PM{
"CFMappings": {
"/hudexchange_deployment_root": {
"INSPECTTEMPLATE": "",
"PHYSICAL": "/var/www",
"PRIMARY": "physical",
"TOPLEVEL": "true"
}
}
}
i get https://gist.github.com/jamiejackson/04cffa47ea1c6a20f54e75e2b467b67e
but i can't see the mapping in the lucee web adminjamiejackson
07/10/2023, 9:14 PM/opt/lucee/web/cfconfig.json ?justincarter
07/11/2023, 6:13 AMjustincarter
07/11/2023, 6:14 AMjamiejackson
07/11/2023, 1:02 PMjustincarter
07/11/2023, 1:51 PMzackster
07/11/2023, 2:12 PMlucee-server/context/logs/out.log for the order and which files it checks for
lucee-web.xml.cfm will only be looked for and imported if lucee-server.xml existsjamiejackson
07/11/2023, 2:58 PMlucee-(web|server).xml .
my starting poing now is that i have a simple, custom `cfconfig.json` that I'm trying to get picked up by lucee 5.4. (once i get that working, i'll try a more full-fledged cfconfig.json.) i just can't seem to get it to pick it up. there's probably something simple I'm missing. I included the `out.log`output, in case that helps.
https://cfml.slack.com/archives/C06TA0A9W/p1689023625302229?thread_ts=1689006483.729039&cid=C06TA0A9Wjamiejackson
07/11/2023, 3:04 PM.CFConfig.json). i'll try that. fingers crossed
https://github.com/search?q=repo%3Alucee%2FLucee%20cfconfig.json&type=codejamiejackson
07/11/2023, 3:18 PM$ docker exec e28 cat /opt/lucee/web/.CFConfig.json
{
"CFMappings": {
"/hudexchange_deployment_root": {
"INSPECTTEMPLATE": "",
"PHYSICAL": "/var/www",
"PRIMARY": "physical",
"TOPLEVEL": "true"
}
}
}zackster
07/11/2023, 3:22 PMjamiejackson
07/11/2023, 3:23 PMlucee-web.xml.cfm normally lives but i do see an /opt/lucee/web/context directory, too.jamiejackson
07/11/2023, 3:24 PMjamiejackson
07/11/2023, 3:41 PMENV LUCEE_ADDITIONAL_CONFIG_WEB_DIR=/tmp/fakecontext/
RUN mkdir -p /tmp/fakecontext
COPY ./docker_conf_lucee/templates/cfconfig.json /tmp/fakecontext/.CFConfig.jsonjamiejackson
07/11/2023, 3:47 PMcfconfig.json-based lucee configuration is documented.jamiejackson
07/11/2023, 4:19 PM