Deploying Projects
107
Using deployment scripts
You can create a deployment script that you can run at any time. The most powerful
benefit of scripts is that, once they have been generated, they can be modified with
custom code and saved.
Deployment scripts are based on the Allaire Visual Tools Object Model (VTOM) and
can be generated in either JScript or VBScript. For more information, see Scripting the
Visual Tools Object Model in the online Help References.
You can generate three types of deployment scripts:
•
The Project Element Iterator Script generates a script that performs a file-by-file
upload with a set of nested loops, or iterations. The script iterates through each
server, then each folder, then each file. You can insert code between the loops to
add custom functionality during uploading.
•
The File-by-File Deployment Script creates a script that uploads each of the
project files individually. During a file-by-file upload, the project is opened,
each file is uploaded individually, then the project is closed.
•
The Project-wide Upload Script generates a script that is identical in
functionality to deploying the project directly. During a project-wide upload,
the project is opened, uploaded, then closed.
To create a deployment script:
1. Open the project for which you want to generate a script.
2. Click the Deploy Project button or select
Project > Deployment Wizard
.
The Deployment Wizard window appears.
3. Click Generate Deployment Script, then click Next.
4. Enter a name for the script in the Deployment Task Name box.
5. Select either VBScript or JScript from the Script Language Options.
6. A pathname based on the project name is automatically entered for the script in
the Save Script to File box. You can change it by entering a new pathname or
clicking the Browse button to use the Save As dialog box.
7. If you want to see the script in the Editor window, select the Open script in editor
after generation option.
8. Click Next.
9. Select the type of script you want to generate, then click Next.
10. Select destination, file, and logging options, then click Next
11. Click Finish to generate the script.
The script file is saved in the application root folder on the JRun server.
Summary of Contents for COLDFUSION STUDIO 4.5-USING COLDFUSION...
Page 1: ...Allaire Corporation Using ColdFusion Studio ColdFusion Studio 4 5 for Windows 95 98 NT4 2000...
Page 16: ...xvi Contacting Allaire...
Page 90: ...82...
Page 130: ...122...
Page 133: ...141 Two VTML tags CAT and E let you customize the content of these dialog boxes...
Page 182: ...190...