In this entry, we will see how to configure the development environment for both ColdFusion and Lucee, specifically on Mac, but the process is relatively the same, the difference lies in the version that is downloaded.
Web Hosting
ColdFusion
The ColdFusion Express Express distribution is the fastest way to install and run a ColdFusion server for development and debugging purposes without having to go through the entire installation process. This excludes some functionality features but is not required to develop and debug such as SOLR, Integration with .NET, remote administration and PDF generation. If you need any of these components, it can be installed separately, or install the full trial version.
- Download distribution. You need to have an Adobe ID to be able to download from your portal. It is simple and free, and the download link is as follows. Http://www.adobe.com/cfusion/tdrc/index.cfm?product=coldfusion
- You will be presented with a form and the final combo will present the test distributions for different platforms and languages. Pressing the Download button will start the download in a popup window. The link to download the express version you will find on the main screen. Unzip the downloaded ZIP file no matter which folder, we refer to this folder as <DIR-INST>.
- To start the server, navigate to <DIR-INST> / coldfusion / cfusion / bin /
- In Mac / Linux, run the cfstart.sh file
- Windows runs the cfstart.bat file
- Open the ColdFusion Server Administrator by entering the following address in your web browser http://localhost:8500/cfide/administrator/index.cfm
- If you get the screen shown in the previous point, ColdFusion is up and running.
Type “admin” in the Password field and you are ready. You can start with the configuration of the server which we will leave pending for another publication.
Lucee
The Lucee team also has its express distribution in version 4.5 and version 5 beta to be released soon.
- Download the express distribution at http://lucee.org/downloads.html and unzip. No matter which folder, we refer to this folder as <DIR-INST>.
- To start the server, navigate to <DIR-INST> / coldfusion / cfusion / bin /
- In mac / linux run the file startup.sh
- Windows runs the startup.bat file
- Lucee runs on port 8888, so to verify if the server is working properly open the following address in your web browser http: // localhost: 8888
- And to enter the administrator
- http: // localhost: 8888 / lucee / admin / web.cfm
- The first time you enter the administrator, you will be prompted for a password of 6 characters or more, with which you will enter later, the server configuration will be covered in another publication.
You might want to know this also: Is Lucee CFML now better than Adobe ColdFusion?
CommandBox
Command Box is a wonderful tool developed by the Ortus Solutions team. It is a CLI (Command Line Interface), Package Manager, contains a Embedded Lucee server, REPL (Read-Evaluate-Print-Loop) console which allows you to run CFML from the command line and many other things. For more information about this tool consult this link http://commandbox.ortusbooks.com/content/getting_started_guide.html
- Download CommandBox http://www.ortussolutions.com/products/commandbox#download , if you do not have Java installed on your computer you can download the version with JRE Included.
- It decompresses and executes the file executable Box, depending on the platform in which you are on Mac, for example, you can open a Terminal window and type “box” or simply double click on the file; In any case you will get a start message in Terminal like the one shown in the image.
- The prompt will be displayed as CommandBox: <user> indicating that the application is running.
- *Note. This is not a Terminal (Mac) or MS DOS (Windows) console. CommandBox has some instructions for managing directories like mkdir, cd and ls. If you want to get help about the available commands type “help” and press Enter.
- To start the Lucee server embedded in the application, navigate to the directory where your application is located eg cd angel / sites / mysite and once you are in the directory type start and press Enter. CommandBox will open a web browser window with the application running in Lucee. You assign a different port for each running application. You can run several applications at the same time and change the port for each one of them and an icon with the Ortus Solutions logo will appear on the taskbar. Clicking that will display a menu to terminate the application or open the server administrator and be able to add DataSources or other types of configurations.
IDE
Integrated Development Environment ( IDE ), is a computer application that provides comprehensive services to make it easier for the developer or programmer to develop software.
There are several applications that integrate help in CFML commands as well as intelligent code autocomplete (IntelliSense). Listed below are some open source and other commercial applications.
Eclipse
Eclipse is an open source IDE widely used for its wide variety of plugins and support by the community, the application alone does not support ColdFusion, this is added by installing a plugin called CFECLIPSE, which adds function dictionaries and tags for ColdFusion up to version 9 and Railo up to version 3, offers syntax highlighting for better visualization of the code, Eclipse releases a new version every year in 2015. The distribution in turn is called Mars. We will download the package for PHP as it includes several functionalities. For web development and version control, and later install the CFECLIPSE plugin.
- Download ECLIPSE Here and unzip it in any folder.
- Start the application by double clicking on the executable called Eclipse
Plugins
CFEclipse
- In the main Eclipse menu go to Help -> Install New Sotfware
- In the field Work with write http://cfeclipse.org/update and click on Add
- In the popup window write a name to refer to the plugin Ex. CFECLIPSE
- Enable the CFeclipse box. The second is optional this enables a CFEclipse plugin for DocShare which is another plugin that allows real-time sharing of the editor with another developer who is connected. Click Next.
- Eclipse will take a few seconds looking for the packages you have to download, click Next again.
- Accept the terms and license conditions and click on Finish. Eclipse will show the progress of the installation in the bottom right of the editor window. This can take several minutes. If you get a security alert window, press OK.
- When you are asked if you trust cfeclipse certificates, check the box and press OK. Eclipse will restart.
- In the main menu of Eclipse Window -> Perspective -> Open Perspective -> Other …
- Select CFeclipse; The CFeclipse icon will be added to the Perspective icon group and will change the default perspective of CFeclipse.
- Now you are ready to add your first ColdFusion project.
Links.
Https://github.com/cfeclipse/cfeclipse/wiki/Installing-CFEclipse
Aptana.
It is an Eclipse plugin that adds FTP functionality, and support for other technologies, languages and frameworks for web development.
- In the main Eclipse menu go to Help -> Install New Sotfware
- In the Work with typing field http://download.aptana.com/studio3/plugin/install And click Add
- In the popup window enter a name to refer to the plugin Ex. APTANA
- Basically follow the steps for installing the CFEclipse plugin
Links.
Http://www.aptana.com/products/studio3.html
ColdFusion Builder
It is a commercial IDE provided by Adobe, it allows to develop web and mobile applications, debug, IntelliSense, inspect the view on different devices and manage ColdFusion servers, it is a fairly complete tool at a cost of $ 299 USD, you can install the trial version Which has all the functionality for a while, then limits certain features.
- Download trial version Here
- Run the installation file follow the instructions.
- ColdFusion Builder can be installed as an Eclipse plugin or as a stand-alone application.
Michaela Light is the host of the CF Alive Podcast and has interviewed more than 100 ColdFusion experts. In each interview, she asks "What Would It Take to make CF more alive this year?" The answers still inspire her to continue to write and interview new speakers.
Michaela has been programming in ColdFusion for more than 20 years. She founded TeraTech in 1989. The company specializes in ColdFusion application development, security and optimization. She has also founded the CFUnited Conference and runs the annual State of the CF Union Survey.
And to continue learning how to make your ColdFusion apps more modern and alive, I encourage you to download our free ColdFusion Alive Best Practices Checklist.
Because… perhaps you are responsible for a mission-critical or revenue-generating CF application that you don’t trust 100%, where implementing new features is a painful ad-hoc process with slow turnaround even for simple requests.
What if you have no contingency plan for a sudden developer departure or a server outage? Perhaps every time a new freelancer works on your site, something breaks. Or your application availability, security, and reliability are poor.
And if you are depending on ColdFusion for your job, then you can’t afford to let your CF development methods die on the vine.
You’re making a high-stakes bet that everything is going to be OK using the same old app creation ways in that one language — forever.
All it would take is for your fellow CF developer to quit or for your CIO to decide to leave the (falsely) perceived sinking ship of CFML and you could lose everything—your project, your hard-won CF skills, and possibly even your job.
Luckily, there are a number of simple, logical steps you can take now to protect yourself from these obvious risks.
No Brainer ColdFusion Best Practices to Ensure You Thrive No Matter What Happens Next
ColdFusion Alive Best Practices Checklist
Modern ColdFusion development best practices that reduce stress, inefficiency, project lifecycle costs while simultaneously increasing project velocity and innovation.
√ Easily create a consistent server architecture across development, testing, and production
√ A modern test environment to prevent bugs from spreading
√ Automated continuous integration tools that work well with CF
√ A portable development environment baked into your codebase… for free!
Learn about these and many more strategies in our free ColdFusion Alive Best Practices Checklist.