Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
A great deal of advanced functionality is available to CF Builder if you hook it directly to your ColdFusion server. You can add and manage multiple servers directly inside the server view of CF Builder. Once you have a ColdFusion server configured, you'll be able to access data sources and file system data on the server as well as get SQL code hinting, view components on the server and =hook directly into Web services. So, the first thing you need to do is add a server. If you don't already have the Servers view open-- as you can see here, it's on the bottom half of the default UI.
You can go up to Window, choose Show View and select Servers. Once you're in the Servers view, you'll see this little Add Server icon. If you click the little down arrow, you can choose Connect to ColdFusion Server, which opens the New ColdFusion Server Setup dialog, which looks a little bit intimidating. Since we're working on a local ColdFusion server, we're not going to have to fill out most of the stuff on this dialog. So, let's just get started. I'll give my server a name. We'll call it Local CF9. If I like I can give a description.
If I have three or four or a dozen servers that I'm going to be working with and they will help me to know which one I'm managing inside the Servers view. So, we'll call this my Local ColdFusion 9 Installation. Now for the Application Server, the default is Jrun, which again is what our local development ColdFusion 9 is running on top of. If you are using a different application server, you'll need to choose Other. You will not however be able to start and stop ColdFusion directly from CF Builder if you're not using Jrun.
So, the next thing we'll provide is our host name. Since we're working on our local machine, we'll call that localhost. If you needed a different IP address or even a proper domain name, you'd enter that here. And since we're working locally, we'll leave Is Local selected. If you choose Is Remote, nothing really changes, although you won't be able to auto start and stop your servers, but the dialog doesn't change at all. So, we're going to leave this at Is Local. And then our WebServer Port, the default for a ColdFusion 9 development instance is 8500 and then for Context Root and Application Server Name, you only need those if you're going to be using a multi-instance ColdFusion server.
So, if you had a ColdFusion server with multiple instances setup, you would need to tell CF Builder which instance you're going to be hooking into so that it knows what to use for RDS and all those other wonderful features we're going to be using. So, the last thing on this dialog is we're going to enter in our RDS user name and password, which you should have set up when you installed ColdFusion9. And then we're also going to Auto Start and Auto Stop this server. What that means is when CF Builder shuts down, when we quit CF Builder, it will automatically stop the ColdFusion server.
When we start CF Builder up, it will automatically start the ColdFusion server. That means that CF 9 will be up and ready to go as soon as we start CF Builder and it'll shut down so it's not using any computer resources when we're done working for the day and we quit the application. So, once that dialog is complete, we'll click Next and now we need to specify our local server settings. So, I'm going to choose where my server home directory. So, I click Browse and in this case, my local ColdFusion server is under Applications in ColdFusion9.
If you are on the Windows' side that's most likely under your C drive in the ColdFusion9 directory. So, I'll click Choose and ColdFusion9 will do the rest for us. It can determine the version and it sets our web root. If we were using a remote server, we would need to select the ColdFusion version in this little dropdown list. Now these next two we're not going to be using for our local installation, but the URL Prefix and Virtual Host Settings are used if you need to access files that are outside of your regular web root. For example, if you have CFCs that live outside the web root that you need CF Builder to be aware of, you can specify those here in the URL Prefixes.
And Virtual Host Settings you'll use if you're using a server that's hosting multiple web sites on the same IPs. You will specify each of those web sites, their individual ports and document roots, all that other kind of good stuff. So, as we're just using our regular local installation, we don't need to worry about any of this either. So, we'll click Next. Now it's going to ask us if we want to install some extensions that come with CF Builder, which include an ORM CFC builder and a standard CFC builder extension.
At this point, we are not going to install these extensions because I'm going to cover this later in another chapter. So, click Finish and down here, it is going to set up our ColdFusion server and immediately start it since I had elected to have the server auto-start. So, as you can see, it's showing me everything in the log view for ColdFusion server as the server gets started up. And now we can see it's ready to go. It took 15 seconds to get the server started.
It's now that your server is set up, we'll go back to the Servers view and you can see that it is currently running. If I scroll over here to the side, you can see there's the description I typed in. There's the server type, which is local, my host and my port. Across the top, here we also have options to restart the server, ColdFusion 9 servers can't be paused, and we can stop the server. We can also open the logs for each server. We can look at the event gateways, the server logs. Again, we're going to cover an another video, but for now, I'll show you how to stop and start the server.
Scroll back over here to the left and if I just right-click on the server I also have all those same options. We can restart, stop, delete or edit the server. I could even launch the Server Monitor or the ColdFusion Administrator directly from here. So, let's stop the server. If I go back over here to the console, we can see it didn't take any time at all to completely stop the ColdFusion server and then it destroys all the resources the ColdFusion server was using. Go back over here to the Servers view and we can see that that server is now listed as Stopped.
So, this time I'll click on the little play icon and we'll start the server back up. We now know how to add and manage all of your ColdFusion servers in CF Builder, but don't go overboard. Be sure to configure just what you need in order to keep CF Builder working nice and smooth and double-check your configurations before moving on to developing your application. A good number of features depend on having access to your project's ColdFusion server, so make sure you have all those settings correct.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 92316 Viewers
82 Video lessons · 104095 Viewers
71 Video lessons · 75479 Viewers
56 Video lessons · 106852 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.