Hello,
I’m trying out ColdBox as I think it provides a lot of nice features I’d like to use on our dev team. I’m going through the process of getting it setup on my local dev environment, and I’ve got it partially working. I’m hoping someone can point me in the right direction so I can move forward.
We are using a connector from the Cold Fusion 2018 Application Server to Apache for our Cold Fusion projects currently.
So far I’ve installed CommandBox, made two subfolders and made two subfolders off the webroot:
coldboxapps/testapp
I’ve created a test application using the command “coldbox create app TestApp” in the testapp subfolder.
After some googling, I moved the coldbox folder to the web root and restarted the application server.
Browsing to localhost/coldboxapps/testapp gives me the Welcome to ColdBox! page, but a few things are broken on the page.
The “Main” event handler points to the url localhost/coldboxapps/testapp/Main, and I get a 404 when I click on it.
Under the Application Test Harness section, the links to the Testbox runner and browser generate incorrectly.
localhost/coldboxapps/testapp/coldboxapps/testapp/tests/runner.cfm is an example. The links are duplicating the folder structure. I poked around at the source code a bit and saw that the link is being generated with #getSetting( “appMapping” )#. Removing that does fix the link (however, I get a different error which I didn’t want to pursue at this time).
In the main Application.cfc file, I played around with COLDBOX_APP_MAPPING, but that tended to break the application so I’ve left it blank for now.
For comparison’s sake, I spun up the same project in a folder in my desktop and used the Lucee server, and everything works fine. I have to get it working in our environment to actually build applications for it however.
Thanks in advance for any help you can provide!