Issues
when there's a lucee-web.xml.cfm but no lucee-server.xml Lucee 6 does not detect the lucee-web.xml.cfm for import
Description
relates to
Details
Assignee
Michael OffnerMichael OffnerReporter
Zac SpitzerZac SpitzerNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
NonePriority
New
Details
Details
Assignee
Reporter
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
Priority
Activity
Michael Offner15 June 2023 at 09:32
this cannot be fixed, because we would have to do a lot of changes to support something misuses an existing feature.
We have added 2 functions that makes it easy to solve this
configImport - allows to insert data into the config at any time
configTranslate - converts an existing xml config to json config
Zac Spitzer14 June 2023 at 09:30
PR to update preside server commands to write a lucee-server.xml
but there are other devops workflows Iām aware of which also follow this pattern too
Michael Offner14 June 2023 at 09:02
i also have to point out that if you run Lucee once, you always have a server.xml and this whole functionality is to import existing Lucee 5 data. so this only happen with commandbox.
Zac Spitzer13 June 2023 at 16:32
removed commandbox from the task title, as this could happen without command box
Michael Offner13 June 2023 at 15:45
Problem is when the decision is mode in the server context, Lucee is not aware of the web contexts yet, simply because web context get loaded afterwards. also we have a one to many relation here.
When preside commands configure a new site, it only writes out a
lucee-web.xml.cfm
file, but nolucee-server.xml
file.Currently Lucee only looks for
lucee-server.xml
file, if it's not found, it assumes a new installation and goes single modeHowever, the way commandbox works by default, every different lucee version is deployed to a fresh server home.
if a
lucee-web-directory
is configured, also check for alucee-web.xml.cfm
and it it exists, default to multi mode, otherwise the config is ignored and things don't worki.e.