How to Run M5 and M6 at same time?


In production, we have Coldbox 3, M5 running. I want to run M6, but
don't have the time right now to fix the apps that are currently
working under the M5 version. I tried swapping the folder out for the
M6 version but i got a few errors which caused the apps to break
instantly. One error was:

The DSNBEAN argument passed to the init function is not of type

Is there a way to run M6 at the same time easily alongside M5, maybe
some setting where I can change the path that the framework looks at
for a particular app?


What version of CF are you using? I use mappings and the no inheritance application.cfc to give each app it’s own version of the framework. Then I can modify one without affecting others.

  • Gabriel

I’m using CF9…

Look at the noinheritance application.cfc in the coldbox advanced template. You’d want to start with that and include a mapping like below which would allow you to change each one individually.

<cfset this.mappings["/coldbox"] = #fullPathToColdboxDirectory#>

If your CB files are relative to the app, you can even do something like:

<cfset this.mappings["/coldbox"] = COLDBOX_APP_ROOT_PATH & “frameworks\coldbox”>

  • Gabriel

Thanks, this looks like what I'm looking for. Appreciated.