fmdano
12/15/2022, 4:34 PMslcronin
12/15/2022, 4:37 PMDaniel Mejia
12/15/2022, 4:40 PMadam.euans
12/15/2022, 4:40 PMslcronin
12/15/2022, 4:42 PMDaniel Mejia
12/15/2022, 4:46 PM"scripts":{
"preServerStart":"recipe server-install-packages.boxr"
}
and in my server-install-packages.boxr:
cfpm install sqlserver,mail,cache
the list of packages are comma separated with no spaces.fmdano
12/15/2022, 4:46 PMDaniel Mejia
12/15/2022, 4:47 PMadam.euans
12/15/2022, 4:48 PM"scripts":{
"onServerInstall":"cfpm install axis,caching,document,ftp,mail,scheduler,spreadsheet,sqlserver,zip"
},
Is what we use for a number of projects.Daniel Mejia
12/15/2022, 4:49 PMfmdano
12/15/2022, 4:49 PMDaniel Mejia
12/15/2022, 4:49 PMadam.euans
12/15/2022, 4:49 PMDaniel Mejia
12/15/2022, 4:49 PMfmdano
12/15/2022, 4:50 PMbdw429s
12/15/2022, 8:08 PMbdw429s
12/15/2022, 8:09 PMassertFalse ${interceptData.INSTALLDETAILS.INITIALINSTALL} || cfpm install ...bdw429s
12/15/2022, 8:09 PMfmdano
12/15/2022, 8:10 PMbdw429s
12/15/2022, 8:11 PMcfpm that is just a passthrough to the real cfpm.bat or cfpm.sh script inside the corresponding server home. So you can type
cfpm ANY VALID CFPM THING HERE
from the root of the web server, and it will just workbdw429s
12/15/2022, 8:11 PMfmdano
12/15/2022, 8:12 PMbdw429s
12/15/2022, 8:12 PMscripts block of a box.json file) in the web root of the server
β’ OR a server script (the scripts block of the server's server.json)bdw429s
12/15/2022, 8:12 PMserver.jsonbdw429s
12/15/2022, 8:12 PMfmdano
12/15/2022, 8:13 PMbdw429s
12/15/2022, 8:22 PMonServerInitialInstall whcih ONLY fires on the initial install
https://ortussolutions.atlassian.net/browse/COMMANDBOX-1539bdw429s
12/15/2022, 8:22 PMonServerInstall always fires is because modules like CFConfig need to run their logic on every server start, and they specifically just need to ensure the CF home exists at that point in time.bdw429s
12/15/2022, 8:24 PMcfengine to a new CF/Lucee version, the initial install will fire the FIRST time that version of CF/Lucee is installed.)Daniel Mejia
12/15/2022, 10:34 PM