What is a Deployment Definition
Understand how Deployment Definition files group deployable assets by directory.
阅读时间1 分钟最后更新于 2 个月前
Definition
A Deployment Definition ( extension) file is a logical grouping of deployable assets that is based on its location in a directory.
A Deployment Definition contains all files in its directory and sub-directories, unless another Deployment Definition is found.
Only a single Deployment Definition may exist in a single directory.
.ddefDeployment Definition Structure
A deployment definition is represented by the following json.
The is used to give information when using Deployment Definitions with the UGS CLI.
The are used to give more flexibility to deployment definitions. More information can be found here.
nameexcludePaths{ "name": "example", "excludePaths": [ ]}
Example
Given the following hierarchy, the Deployment Definitions , , and would be responsible for the following files:
CloudCode.ddefCloudCodeTests.ddefRemoteConfig.ddef- CloudCode.ddef
- scriptA.js
- scriptB.js
- scriptA.js
- CloudCodeTests.ddef
- scriptA.test.js
- scriptB.test.js
- scriptA.test.js
- RemoteConfig.ddef
- configA.rc
- configB.rc
- configA.rc
Assets/├── DeployableAssets/│ ├── CloudCode/│ │ ├── CloudCode.ddef│ │ ├── scriptA.js│ │ ├── scriptB.js│ │ └── Tests/│ │ ├── CloudCodeTests.ddef│ │ ├── scriptA_test.js│ │ └── scriptB_test.js│ └── Remote Config/│ ├── RemoteConfig.ddef│ ├── configA.rc│ └── configB.rc