TL;DR
My (current) preferred setup for developing on ColdFusion 10, IIS 7.5, ColdFusion Builder 2 on Windows 7:
- Create the CF Builder project
- Add a virtual host
- Add the IIS site
- Add the virtual host to the CF Builder server
- Update CF Builder project to use the new virtual host
Not Too Long; Did Read
Something new I’m trying at Security Labs is doing more local development, then pushing to a development server for testing. In the last couple of days, I’ve played with some setup, and I think I found the right mix for me.
Creating the ColdFusion Builder Project
- Right-click in the Navigator
- Choose New > ColdFusion Project
- Complete Project Details
- Project Name
- Use Default Location or Choose another location
- Choose CFML Dictionary Version (probably ColdFusion 10)
- Click Finish
Adding a Virtual Host
- Launch Sublime Text 2 as administrator
- Go to File > Open File…
- Navigate to C:\Windows\System32\drivers\etc
- Select “hosts”
- Click Open
- Add a new entry like:
- 127.0.0.1 testing.dev
- Save
- Ctrl + W to close the file
- Ctrl + W to close the app
Adding an IIS Site
- Launch IIS 7.5
- Expand to Sites
- Right-click > Add Web Site…
- Fill out web site details
- Name: project name above
- Select “ColdFusion” for the Application Pool
- This is a custom Application Pool that I made. It’s probably not necessary, and I don’t quite understand the settings.
- .NET Framework version: No Managed Code
- Managed pipeline mode: Classic
- Browse to physical path for your files from above
- Connect As…
- I use my Windows domain user
- Test Settings… should be all green
- Host Name: virtual host above
- Click OK
- Right-click the site > Add Virtual Directory…
- Alias: jakarta
- Physical Path: C:\ColdFusion10\config\wsconfig\1
- Right-click the site > Add Virtual Directory…
- Alias: CFIDE
- Physical Path: C:\ColdFusion10\cfusion\wwwroot\CFIDE
- Click OK
Adding a Virtual Host to a Server in ColdFusion Builder
- Right-click the server > Edit Server
- Click Next >
- Click Virtual Host Settings tab
- Click New
- Name: project name above
- Host Name: virtual host above
- Port: 80
- Type: http
- Document Root: path to project above
- Click Apply
- Click Finish
Updating ColdFusion Server Settings in ColdFusion Builder
- Right-click the project > Properties
- Select ColdFusion Server Settings
- Choose appropriate local server-host name
- Note: the Sample URL should use your virtual host from above
- Click OK