More CFConfig questions. #1: What's the `toFormat`...
# lucee
j
More CFConfig questions. #1: What's the `toFormat`that should be used for Lucee 6 single-server mode? I'm using `LuceeWeb@6`and there's an issue with scheduled task definitions. If i'm using the right
toFormat
, I'll elaborate.
(Attn: @bdw429s)
b
I believe in single-context mode, the only format should be
LuceeServer
j
Okay, I'll check. And should it be versioned? (
LuceeServer@6
)
b
And, of course, the format is rarely necessary. When using CommandBox server, it knows the server type and version. When pointing to a server home on disk, usually CFConfig canfigure it out by inspecting the file system
j
For posterity, this is what I got with
LuceeWeb@6
, but I'll try as you suggest. https://gist.github.com/jamiejackson/7308446c67dec88469ba39ebd9df4a53
When pointing to a server home on disk, usually CFConfig canfigure it out by inspecting the file system
Ah, thanks. I didn't know or forgot that.
I'm trying without the explicit format now...
b
key [URL] doesn't exist
Interesting. I wonder if Lucee is using a different key name or something? The error would indicate Lucee is looking for the
url
key though...
j
it's probably the first key it's looking for and since the first "task" is a nested structure, it doesn't really have the
url
key where expected.
note how different the task rendered from CFConfig is from the one created by the admin.
b
I'm a little unclear from your gist which is Lucee's config and which is CFConfig's file?
j
yeah, thanks micha, for the name of that native file. 😛
b
No, I meant you have two JSON files in your gist and I'm not sure where each one came from
j
.CFConfig.json
is the native file (lucee's naming).
config.json
is my un-rendered CFConfig configuration.
b
Well, Micha copied that name from CommandBox 🙂
j
it's hard to disambiguate them since lucee ambiguated things via its naming of the Lucee 6 config file.
b
Because he was mostly/somewhat/a little copying the CFConfig format
And "hidden" files won't be served by the CommandBox web server like Apache for security
j
anyway, is it clear now which is which?
b
yes, but it's not clear if Lucee created the Lucee one, or if that's what it looks like after CFConfig tried to import into it
I'll need to do some testing, but I'm walking out the door ATM to grab some gas and groceries before Snowmaggedan 2.0 the sequel hits Kansas City 🌨️
j
it's been underway in DC since about 2PM. 🌨️
i'm going to comment the json files so it's clearer
i've updated the gist with comments
question: has the scheduled task configuration block been tested with lucee 6 yet, or am i guinea pigging it?
fyi, i'm having similar issues with both scheduled tasks and event gateways: https://gist.github.com/jamiejackson/92d3ba1fceeed363e63b731a2596dc4b
the
config.json
source file that works in lucee 5 doesn't work in lucee 6 because cfconfig import creates json that's not what lucee 6 expects.