To be able to program in ColdFusion, a ColdFusion server needs to be installed. There are a couple of options available, but the one that we are going to focus on is setting up and using CommandBox by Ortus Solutions.
CommandBox is a standalone, native tool for Windows, Mac, and Linux that will provide you with a embedded CFML server, Command Line Interface (CLI) for developer productivity, tool interaction, package management, application scaffolding, and more.
To install CommandBox (ColdFusion), follow the steps below:
Open up a browser and go to: https://www.ortussolutions.com/products/commandbox
Download commandbox with JRE
Find downloaded zip which should be in your downloads folder (C:\Users\username\Downloads)
Unzip the zip file into the downloads folder (commandbox-jre-win64-4.2.0.zip)
make a shortcut on your desktop to box.exe
Once unziped, double click on the box.exe to install -- the command prompt will appear and run through the setup
After install run the following commands in the command line (cmd prompt opens with commandbox install)
CommandBox is not setup and ready to use
To use CommandBox to spin up a ColdFusion server to run a site, do the following:
If you have a site running, make sure you shut down the site first
Anytime you want to close commandBox and you have no sites running, just close the command window with the x in the corner, or type exit
Open up a browser and go to: https://www.ortussolutions.com/products/commandbox
Download commandbox Mac 64-bit JRE
Find downloaded zip which should be in your downloads folder (C:\Users\username\Downloads)
Unzip the zip file into the downloads folder (commandbox-jre-win64-4.2.0.zip)
make a shortcut on your desktop to box.exe
Once unziped, double click on the box.exe to install -- the command prompt will appear and run through the setup
After install run the following commands in the command line (cmd prompt opens with commandbox install)
CommandBox is not setup and ready to use
To use CommandBox to spin up a ColdFusion server to run a site, do the following:
If you have a site running, make sure you shut down the site first
Anytime you want to close commandBox and you have no sites running, just close the command window with the x in the corner, or type exit