DeploymentManager Object
257
UploadFile
Syntax
UploadFile(const wsFile:Widestring, sTargetFile: WideString);
Description
Uploads an individual file to the server. The first
OleString
represents the fully
qualified path of an individual file to upload. The second
OleString
represents the
fully qualified target name, such as rds://localhost/main/index.html.
UploadProject
Syntax
UploadProject(const wsProjectName: WideString);
Description
Uploads an entire project based on the fully qualified project name passed as an
OleString
. This triggers the default deployment engine processing loop which
iterates through each server assigned to the project, each folder within the project,
and uploads all the files contained within each folder. During this process, skips any
folders that are configured as Do not deploy folders.
Project folder names
Project folder names are stored in the following format: Project/Folder/Subfolder1[/
SubFolder2… SubFolderN], where:
Project represents the name of the project
Folder represents the topmost folder in the project
SubFolder1 represents a folder stored relative to Folder
SubFolder2..SubFolderN represent folders that are stored relative to SubFolder1 in a
hierarchical fashion.
To use any of the existing folder-related
DeploymentManager
calls, you must pass the
fully qualified folder name starting from the project name itself. For example, if you
have a project called Project1 and a Main folder that contains an Images folder, and
you must retrieve the count of how many files you have in the Images folder, the
proper call is:
ICount = GetFolderFileCount("MyProject/Main/Images");
// Returns count of files in Images
Sample deployment script
// ==================================================================
// This sample script was generated by the Deployment Wizard,
// using the Project Element Script Iterator option.
// ===================================================================
// Project Name:
// Date/Time Generated:
Summary of Contents for ColdFusion Server 5
Page 18: ...xviii About This Book...
Page 26: ...8 Chapter 1 Setting Up the Product...
Page 42: ...24 Chapter 2 Configuring Browsers and Servers...
Page 60: ...42 Chapter 3 Exploring the Workspace...
Page 100: ...82 Chapter 6 Editing Pages...
Page 126: ...108 Chapter 7 Using Web Development Languages...
Page 212: ...194 Chapter 13 Customizing the Development Environment...
Page 320: ...302 Glossary...