Right, which is why this sounds like a ModelGlue bug. If I were to guess, MG is not expanding the path.
CommandBox is not a CF engine, it’s a CLI tool and servlet. It can start either Lucee Server or Adobe CF for you. If you just typed
server start and didn’t specify a
cfengine then you’re using the Lucee CF engine. Is Model Glue compatible with Lucee?
Added where? Are you talking about an
alias in the
server.json, because that’s just a web server virtual directory, it’s not the same as a CF Mapping. Well, in Lucee it’s not, lol. Adobe CF and their “magic” IIS connectors create a link between the too, but Lucee doesn’t support that.
CommandBox just knows about the web root, which both Adobe and Lucee will point their
/ CF mapping to. I don’t think that is part of your issue though. it sounds like Adobe has a slightly different behavior than Lucee when it comes to expanding paths. This really has nothing to do with CommandBox per se, It’s just the servlet container.
Again, CommandBox is not a CF engine. It doesn’t have CF mappings (well, not any that matter here, lol). If you’re using Lucee Server and asking where the web based administrator is for Lucee, you can access it easily via the CommandBox server tray icon menu under “Open…” > “Server Admin”. Or just add
/lucee/admin/server.cfm to the URL.
There are no CF engine settings like CF mappings in the
server.json. There is a CommandBox module named CFConfig which will manage all your CF engine settings for you via a JSON file however.
I really think you’re just hitting a difference in Lucee, but stuck on the fact that you thin it’s CommandBox. If you just want to run your sit eon Adobe CF, then stop the server and restart it like so
If you’re trying to figure out if the ModelGlue framework is compatible with Lucee, then that’s another question entirely, and it seems the answer is no. At least, not out the box. I would assume if you foud the part of the MG core framework code that loads the config file and pass the relative path through the CF
expandPath() BIF, it would work fine.