bdw429s
03/02/2022, 6:36 PMDaniel Mejia
03/02/2022, 6:39 PMDaniel Mejia
03/02/2022, 6:40 PMbdw429s
03/02/2022, 6:43 PMbdw429s
03/02/2022, 6:44 PMbdw429s
03/02/2022, 6:44 PMristo
03/02/2022, 8:32 PMbdw429s
03/02/2022, 8:33 PMbdw429s
03/02/2022, 8:34 PMristo
03/02/2022, 8:36 PMristo
03/02/2022, 8:39 PMbdw429s
03/02/2022, 9:03 PMbdw429s
03/02/2022, 9:04 PMDaniel Mejia
03/03/2022, 12:50 AMcfconfig diff
to compare your current settings to that of a new fresh install server.
1. Install commandbox on your production server. Not needed is your server is available via unc path.
2. commandbox> cfconfig export from=\\my-unc-path\c\Coldfusion2018\cfusion\cfapi to=C:\temp\cfapi-cfconfig.json
3. save cfapi-cfconfig.json to your local machine
4. then on your local machine, create a new folder called "fresh-install"
5. commandbox> cd fresh-install
then commandbox> server start cfengine=<same as your production>
6. commandbox> cfconfig export to=freshinstall-cfconfig.json
7. Now you can compare the two json files.
8. commandbox> cfconfig diff cfapi-cfconfig.json freshinstall-cfconfig.json --valuesDiffer --toOnly --fromOnly
That's it. The output of the diff command will you show three things. 1/ settings/properties that differ from your production server and the fresh install. 2/ settings that only exist in the production server. 3/ settings that only exist in the fresh install.
In my case there were only 5 custom settings in my server. But it gave me a good understanding of what my applications required.risto
03/03/2022, 3:43 PMristo
03/03/2022, 3:44 PMDaniel Mejia
03/03/2022, 4:11 PM