I am trying to set up cfconfig to manage datasources and mappings in my development environment to make it easier to verify different versions of Lucee work with my code base.
I am using CommandBox 4.7.0+00026, commandbox-cfconfig 1.0.3 and Lucee 5.3.2+77
When the server starts, the datasource is not configred, nor are any of the mappings.
However, when I use cfonfig show I see the datasource and mapping in the results - but nothing on the Lucee server itself.
I have tried using the cfconfigfile parameter in server.json and I have tried putting .config.json in the web root and neither produces the expected results.
Here is the json I am using:
{
“CFMappings”:{
“/ui”:{
“PHYSICAL”:“path\to\folder”,
“PRIMARY”:“physical”,
“READONLY”:“false”
}
},
“clientCookies”:“no”,
“clientManagement”:“no”,
“datasources”:{
“golfLeagueManager”:{
“allowAlter”:true,
“allowCreate”:true,
“allowDelete”:true,
“allowDrop”:true,
“allowGrant”:true,
“allowInsert”:true,
“allowRevoke”:true,
“allowSelect”:true,
“allowUpdate”:true,
“blob”:“true”,
“class”:“com.mysql.jdbc.Driver”,
“clob”:“true”,
“connectionTimeout”:“1”,
“custom”:“useUnicode=true&characterEncoding=UTF-8&useLegacyDatetimeCode=true”,
“database”:“golf_league_manager”,
“dbdriver”:“MySQL”,
“dsn”:“jdbc:mysql://{host}:{port}/{database}”,
“host”:“localhost”,
“metaCacheTimeout”:“60000”,
“password”:"***",
“port”:“3306”,
“storage”:“false”,
“username”:“root”,
“validate”:“false”
}
},
“sessionManagement”:“yes”,
“sessionTimeout”:“0,0,30,0”,
“timeServer”:“pool.ntp.org”
}
Is there some kind of comparability issue with Lucee? I have used this for projects that use ACF and did not have these issues.