
106
L
ast
u
p
dated
7/9/2
01
2
Chapter 6: Deploying ColdFusion
Applications
Adobe ColdFusion includes archive and deployment options that let you package applications and create archive files.
Archive and deployment options
ColdFusion includes the following archive and deployment options.
ColdFusion archive files
You can package your ColdFusion application’s pages, data sources, and settings in a
ColdFusion Archive (CAR) file. For more information, see “
Packaging applications in CAR files
” on page 106.
J2EE archives
You can package your ColdFusion application as an Enterprise Application Archive (EAR) or Web
Application Archive (WAR) file for easy deployment to a J2EE application server. For more information, see
“
Packaging applications in J2EE archive files
” on page 107.
Cfcompile utility
The
cfcompile
utility lets you precompile the ColdFusion pages of your application, into Java class
files. In addition, you can compile ColdFusion pages to bytecode and save this bytecode in files with the CFM, CFC,
or CFR extension. For more information, see “
Using the cfcompile utility
” on page 108.
Packaging applications in CAR files
CAR files let you archive and deploy website configuration information, files, and applications. Use this feature to
deploy your website applications to another location or to back up your files quickly and easily. You can manage CAR
files using the Packaging & Deployment > ColdFusion Archives area of the ColdFusion Administrator.
You can migrate code from ColdFusion 8 and ColdFusion 9 to ColdFusion 10
Note:
CAR file archiving and deployment is different from J2EE archiving and packaging through EAR and WAR files.
Perform the following steps when you archive and deploy site information:
1
Create the archive definition.
Identify the type of information to archive about a site. You can archive almost anything about the site, including
directories, files, CFX tags, ColdFusion mappings, Solr collections, automated tasks, and server settings. Each
archive definition that you create is assigned a name. You use this name each time you build or deploy its content.
2
Build the archive.
Select the name of the archive definition and specify a location to which you store the CAR file.
3
Deploy the archive.
Specify the location of the CAR file and the location to which you restore the contents.
Note:
ColdFusion does not deploy Administrator and RDS passwords, nor does it unpack archives created in earlier
versions of ColdFusion.
For more information on creating, building, and deploying CAR files, see ColdFusion Administrator online Help.