Playing with ColdFusion 10 locally on IIS 7.5 and Windows 7

TL;DR

My (current) preferred setup for developing on ColdFusion 10, IIS 7.5, ColdFusion Builder 2 on Windows 7:

  1. Create the CF Builder project
  2. Add a virtual host
  3. Add the IIS site
  4. Add the virtual host to the CF Builder server
  5. 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
  1. Right-click in the Navigator
  2. Choose New > ColdFusion Project
  3. Complete Project Details
    • Project Name
    • Use Default Location or Choose another location
    • Choose CFML Dictionary Version (probably ColdFusion 10)
  4. Click Finish

Adding a Virtual Host

  1. Launch Sublime Text 2 as administrator
  2. Go to File > Open File…
  3. Navigate to C:\Windows\System32\drivers\etc
  4. Select “hosts”
  5. Click Open
  6. Add a new entry like:
    • 127.0.0.1    testing.dev
  7. Save
  8. Ctrl + W to close the file
  9. Ctrl + W to close the app
Adding an IIS Site
  1. Launch IIS 7.5
  2. Expand to Sites
  3. Right-click > Add Web Site…
  4. Fill out web site details
    1. Name: project name above
    2. 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
    3. Browse to physical path for your files from above
    4. Connect As…
      • I use my Windows domain user
    5. Test Settings… should be all green
    6. Host Name: virtual host above
  5. Click OK
  6. Right-click the site > Add Virtual Directory…
    • Alias: jakarta
    • Physical Path: C:\ColdFusion10\config\wsconfig\1
  7. Right-click the site > Add Virtual Directory…
    • Alias: CFIDE
    • Physical Path: C:\ColdFusion10\cfusion\wwwroot\CFIDE
  8. Click OK
Adding a Virtual Host to a Server in ColdFusion Builder
  1. Right-click the server > Edit Server
  2. Click Next >
  3. Click Virtual Host Settings tab
  4. Click New
    • Name: project name above
    • Host Name: virtual host above
    • Port: 80
    • Type: http
    • Document Root: path to project above
  5. Click Apply
  6. Click Finish
Updating ColdFusion Server Settings in ColdFusion Builder
  1. Right-click the project > Properties
  2. Select ColdFusion Server Settings
  3. Choose appropriate local server-host name
    • Note: the Sample URL should use your virtual host from above
  4. Click OK
%d bloggers like this: