Skip to main content
Participant
May 28, 2012
Question

Can't preview files from a network drive to a local CF9 server.

  • May 28, 2012
  • 2 replies
  • 1806 views

Hi,

I have the following set up:

  • CF9 Local Dev version
  • CF Builder 2.
  • Project files are in a network drive N:\project
  • I have RDS set up and everything seems to work ok, view DSN, files, etc on my local server.
  • In the URL prefix section I even created a map:
  • There is no FTP set up on the CF9 server.

The problem is that when I try to preview a file that I am working on from N:\project, it doesn't show on my local server. The previewing part works if I manually move the file to CF9. But it is the automatic uploading (or moving) of the file to the local CF9  that doesn't seem to work.

BTW, I have a similar set up in DreamWeaver, where I am editing the same project (or site in this case) off of  N:\project, uploading to the same local CF9 server through RDS, and it works fine.

I know that if in CF Builder you move the project to under the web root it will work but that would not work for us, since we need to keep the project source files on a network drive for sharing/backup purposes.

Has anyone been able to successfully preview source files from a network drive on a local CF9 server?

Thanks in advance,

This topic has been closed for replies.

2 replies

Inspiring
June 19, 2012

The easiest way to handle it is to create a folder on your webserver that points to N:\project.   In IIS this is called a virtual folder.   Then you can map your local path to the URL of the virtual folder.

...David

uamadorAuthor
Participant
May 29, 2012

Hi again,

After doing some more googling I realize that for files to be previewed the MUST be under wwwroot. This wasn't too clear in the CF documentation.

So my new question is:

Is there are way, once I save a file to automatically copy it from one location(N:\project) to another (c:/ColdFusion9/wwwroot/project)?

I think there is a way to do it with Ant or some sort of Eclipse feature, but I am not too familiar with either. Could someone point me in the right direction?

Thanks,