
Working with Files on Remote Servers
19
Adding server mappings
A development
mapping
is essential for working with files via Remote Development
Services (
RDS
). Mappings serve two purposes:
•
To enable server-based processing of pages from within ColdFusion Studio
•
To enable debugging of application code on a remote server via RDS
Mapping for page processing
By default, when you browse a document in the internal or external
browser
, it is
opened from the local file system or returned via
FTP
from a remote
server
. That is
adequate for checking page content and formatting, but for developing a Web site
you must see dynamic pages as the visitors to your site will actually experience them.
To do this, you can route the documents through a Web server. The server software
can be on the local machine, a network server, or a remote system. So, instead of just
opening the files, an
HTTP
request for the page is sent to the server. If any server-side
processing is required, such as for CFML, JSP or other scripting, the Web server will
hand off the page to the appropriate server for further processing, then return it to
the browser. This is valuable for previewing applications and site elements in a test
environment before deploying the site.
You establish this routing by associating the physical directories where your files are
stored with the server that processes the files. This association is called a
mapping
. A
wide range of Web servers is supported, so you can create multiple mappings and
select which server to use for processing as needed. Consult your server
documentation or provider for the specifics of accessing server directories.
Note
To use server mappings, either Microsoft Internet Explorer or Netscape Mozilla
NGLayout must be configured as the internal browser.
Mapping for debugging
If you have ColdFusion and ColdFusion Studio on the same machine, you can run
the debugger against files opened from the file system, including mapped network
drives. But if you are working with a remote ColdFusion server via
RDS
, you must set
a
mapping
to that server to run the debugger.
Note
To debug applications from ColdFusion Studio, you must also complete the
procedures in
“Debugging Application Code” on page 117
.
Understanding RDS Mappings
A file
mapping
ensures that ColdFusion Studio, the
RDS
server, and your browser can
properly resolve a local
path
into a server path and
URL
.
Содержание COLDFUSION STUDIO 5-USING COLDFUSION 5...
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...