Hello,
Before today, I have been using the cfadmin tag to update some settings in the admin area.
Today I tried ConfigImport
I found out the hard way that if the cfadmin tag was run at the same time someone was in the lucee administrator (or if cfadmin tag was already running when a second request was fired), it would corrupt the settings files .
I am wondering if the behavior is any different with ConfigImport()?
Thank You
as both are ultimately just updating a text file, so they aren’t inherently thread safe / transactional, just importing a json file means you don’t already know whatever the state was before
what are multiple people doing configuring on the server? ideally config doesn’t get constantly changed reloaded in prod, more of a configure and let it run is ideal, not always possible i know
if you are doing a single configImport it should be fine
We automate as much as possible through automation.
I might be setting up a dev site that requires a DSN on several servers (web server, task server, etc). Another colleague could be setting up a dev site or performing a deployment that would require updating a datasource, etc. It’s pretty much always datasource updates. I was hoping that ConfigImport may be safer.
what? I’m told it’s always dns, just kidding!
well, it’s going to be much safer because you can batch everything into a single update