I am using: ```Windows Server 2016 Commandbox: wi...
# box-products
c
I am using:
Copy code
Windows Server 2016
Commandbox: with JRE win64-5.6.1
c
Yes. I have installed it
But I am still getting problems
OK. I am beginning to think I need to point it at the directory that contains:
Copy code
C:\Users\ADMCharlesr\.CommandBox\server\567217CBB5D34614D303AD5341B28D6C-api_learningassistant_local_acf11019314546\adobe-11.0.19.314546\WEB-INF\cfusion\lib\neo-runtime.xml
Like:
Copy code
cfconfig export from="C:\Users\ADMCharlesr\.CommandBox\server\567217CBB5D34614D303AD5341B28D6C-api_learningassistant_local_acf11019314546\adobe-11.0.19.314546\WEB-INF\cfusion\lib" to=api-learningassistant-local-acf11019314546_config.json fromFormat=adobe@11.0.19+314546
Or do I point at the code base webroot [same folder as
server.json
]
t
no point it at the cfusion dir if it is a server running in CB you dont need the from, if it is running externally then you ned to point it at cfusion https://cfconfig.ortusbooks.com/using-the-cli/usage#adobe-9-10-11-2016-2018-2021-cf-home
b
@Charles Robertson CFConfig is a module you install into CommandBox. It does not come installed out of the box. You have to install it yourself.
Now, that said, I'm considering bundling a few super-useful modules in the next major version of CommandBox just since their use is becoming so ubiquitous
💥 1
t
welcome @bdw429s thought you might be napping 😉
b
It's only 9:30 am here!
I was helping sell candy canes at my kid's elementary school this morning 🙂
t
our bake sale is tomorrow
c
I get this:
Copy code
CommandBox> cfconfig export from="C:\Users\ADMCharlesr\.CommandBox\server\567217CBB5D34614D303AD5341B28D6C-api_learninga
ssistant_local_acf11019314546\adobe-11.0.19.314546\WEB-INF\cfusion\lib" to=api-learningassistant-local-acf11019314546_config.json fromFormat=adobe@11.0.19+314546
ERROR (5.6.1+00618)
Copy code
The config file doesn't exist [C:/Users/ADMCharlesr/.CommandBox/server/567217CBB5D34614D303AD5341B28D6C-api_learningassistant_local_acf11019314546/adobe-11.0.19.314546/WEB-INF/cfusion/lib///lib/neo-runtime.xml]
b
Re-read the instructions (that I posted in the other thread)
Then, look at what you've typed and see what needs to change
Also, this is a CommandBox server?
Why are you making it so complicated then
c
Yes. CommandBox server
b
Just run the command in the web root of the server with no
from
at all!
Or, specify the name of the server
c
I want to convert neo.xml into json
b
There's no need to be messing around with the actual folders unless you're doing this on a non-CommandBox folder
Yes, I know what you're doing, I'm trying to help you do it, lol
You've seriously over-complicated it
Also, you don't need any fromFormat-- the errors about that were only because you were pointint CFConfig at the wrong place
Copy code
cd /path/to/your/webroot
cfconfig export myFile.json
That's it
👍 1
When run from inside the web root of the server, CFConfig will "find" it automatically
FWIW, the full path would have worked, but you didn't need the
lib/
in it.
c
Thanks. That worked 🙏 By the way. I do read the instructions and documentation first.