An example of how to run CommandBox (Any CFML Engine) inside of Electron.
To install, you first need to install Node/NPM if you haven't already. This method could also be used for any Node.JS app.
I mainly moved from straight Lucee to CommandBox due to the flexiilty of CommandBox. We can define which CFML engine we want to use, as well as control it much easier. I also hope to have CommandBox be able to run with .asar
builds, but we will see.
git clone https://github.com/fyroc/cfml-electron.git
cd cfml-electron
npm install
npm start
- Upload your ColdFusion files to
/cfml
- Edit the
server.json
file to fit your needs, just be sure the port matches what is in the main.js file - You can also access CommandBox with http://localhost:8888/ and the systemtray (can be hidden as well)
If you want to use electron-builder to build this, make sure "asar": false
or else CommandBox will not run.