Using Deployment Scripts - MACROMEDIA COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO Use Manual

For windows 95/98/nt4/2000
Table of Contents

Advertisement

Deploying Projects

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:
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.
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.
107

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion studio 4.5

Table of Contents