like typing cfconfig show... shows the server conf...
# cfml-general
b
like typing cfconfig show... shows the server config
e
Not exactly - Coldfusion usually is behind another Webserver such as Apache or IIS. The configuration for those files is dependent upon where and how your Coldfusion instance has been installed. What are you trying to do?
b
oh I have a local commandbox instance spun up and and my settings are all in the web context so I just was wondering if I could export those easily without have to go into the .commandbox dir and finding the correct dir.... Just being lazy.
e
You can, commandbox was designed to be ultra cool like that. cfconfig export
b
This ended up working for me cfconfig export to=/ my / path /devConfig.json from=/my/ path/.CommandBox/server/881DF1996FC70F967A51DF9721F5BD7A-HeyYouGuys/lucee-5.3.10.97/WEB-INF/lucee-web
r
You can also use ComanndBox server names instead of filepaths to make it easier. Such as
cfconfig export from=MyApp to=/path/to/config.json
.
help cfconfig export
for more info.
b
Yeah but that would not work my Web config correct?
r
Not sure. I use ACF.
There are notes in the help documentation for Lucee's web context.
It looks like you just have to add an extra parameter
fromFormat=LuceeWeb
b
I will give that a try thanks
b
@bfescoe yep, all you needed was fromFormat. This is all in the docs!
👍🏻 1
e
RTFM? Naw... Randomly banging away at keys works for the Springboot Developers LOL
🙂 1
b
thanks @bdw429s I just finished watch your video Configuring your Containers with CommandBox & CFConfig ... good stuff changes the game.
👍 2
e
it's freakishly hard to stop wanting to use it to do everything CF related. Multiple servers spun up with ease, and multiple projects run at the command line, just change a directory and spin up a new local port. Need a base app framework, it's a command away. Once you spend ten minutes using it, you will wonder why you used anything else.
b
yeah for sure. better than node everyday end in Y
e
NodeJS is the internet's next RUBY on Rails.. Remember that? Everyone was doing it until the next-gen processors came along
b
Hey guys have you had issues with debug settings not sticking when you import jsonconfig file. I using lucee's configimport() to import settings on the web context.
b
I'm not sure what you're asking, but CFConfig can import into the web context for you as well
Just create a file named
.cfconfig-web.json
and it will go in the web context on startup
b
yeah I can get it to import the the issue I'm having is that I set all debugging to true but when I look at it in the administrator only Template is checked, after I import
datasouces, mappings are all good. It's odd
b
To be clear, are you importing your settings vis CFConfig or via Lucee's new inbuilt JSON stuff?
b
with lucee
b
No idea-- this thread was about CFConfig, so I'd suggest you start a new thread so it's clear you're not longer asking about CFConfig
but my suggestion is still to just use CFConfig instead 🙂
I've never used the built in JSON stuff and I have no idea how it works, or how well it works
b
I totally agree, not my choice however. thanks