I’m trying to set up an environment where I can easily run an app I’m developing on different CFML engines, CommdandBox/CFConfig seems perfect.
I have a .CFConfig.json file generated by CFConfig from my actual server setup at the server root.
I can see the correct mappings in the administrator, and I can correctly resolve paths in cf code, like so:
fileExists(expandPath(“/MyAppMapping/somefile.cfm”))
But When I try access http://127.0.0.1:8501/MyAppMapping/somefile.cfm, I get File Not Found. In the logs I see the mapping wasn’t resolved, it was looking for {siteRoot}MyAppMapping/somefile.cfm, when the mapping for MyAppMapping points deeper inside the app.
What’s wrong here? (URL rewrites are off, fyi.)
Part 2: I have the same sort of problem with html and other non-CFML files. How can I specify web server mappings for a CommandBox instance?
Thanks in advance for any help, and apologies for asking so many questions. I may not seem like it, but I’ve actually tried to find these infos in the docs before pestering folks here.