Friday, October 30, 2009

How-to: Get Coldbox 3.0 beta running on Linux

Unfortunately, it looks like the ColdBox development team must primarily use Windows or a non-case sensitive file system. Trying to get the ColdBox dashboard running under Linux throws various errors and it seems to be due to various CFCs called in the code not matching case to the actual CFCs in the ColdBox core files.

A quick hack is to create a few symbolic links:
ln -s /opt/coldfusion8/wwwroot/coldbox/system/Coldbox.cfc /opt/coldfusion8/wwwroot/coldbox/system/coldbox.cfc

ln -s /opt/coldfusion8/wwwroot/coldbox/system/interceptors/Autowire.cfc /opt/coldfusion8/wwwroot/coldbox/system/interceptors/autowire.cfc

ln -s /opt/coldfusion8/wwwroot/coldbox/system/interceptors/EnvironmentControl.cfc /opt/coldfusion8/wwwroot/coldbox/system/interceptors/environmentControl.cfc

ln -s /opt/coldfusion8/wwwroot/coldbox/system/EventHandler.cfc /opt/coldfusion8/wwwroot/coldbox/system/eventhandler.cfc

ln -s /opt/coldfusion8/wwwroot/coldbox/system/plugins/SessionStorage.cfc /opt/coldfusion8/wwwroot/coldbox/system/plugins/sessionstorage.cfc

ln -s /opt/coldfusion8/wwwroot/coldbox/system/plugins/MessageBox.cfc /opt/coldfusion8/wwwroot/coldbox/system/plugins/messagebox.cfc

ln -s /opt/coldfusion8/wwwroot/coldbox/system/plugins/QueryHelper.cfc /opt/coldfusion8/wwwroot/coldbox/system/plugins/queryhelper.cfc