PK
02/10/2025, 9:55 PMserver.json
or the CFConfig.json
in commandbox to setup mappings, DSNs, and Packages rather than doing those manually in the CF Administrator afterwards? I'm trying to learn to use this tool and that would be a helpful thing to know.
I did find this code for packages in Ortus books
"scripts":{
"onServerInitialInstall":"cfpm install websocket"
}
Do I just list the packages with a comma separating them?Daniel Mejia
02/10/2025, 10:28 PMDaniel Mejia
02/10/2025, 10:30 PM"cfconfig":{
"file":"server.cfconfig.json"
},
and in the server.cfconfig.json you datasources:
"datasources": {
"intra": {
"class": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
"custom": {
"DATABASENAME": "intra",
"SelectMethod": "direct",
"trustServerCertificate": "true"
},
"database": "intra",
"dbdriver": "MSSQL",
"dsn": "jdbc:sqlserver://${TP_DB_HOST}:1433",
"password": "${TP_DB_PASSWORD}",
"username": "${TP_DB_USER}"
}
}
Daniel Mejia
02/10/2025, 10:32 PM${TP_DB_PASSWORD}
use the module "commandbox-dotenv"Daniel Mejia
02/10/2025, 10:38 PM"aliases":{
"/images":"main_app/includes/images"
}
but check the docs here to make sure this is what you need:
https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/aliasesbdw429s
02/10/2025, 10:41 PM