Skip to main content

Deployer

@webda/core


Interface: Deployer

Defined in: packages/core/src/deployers/deployer.ts:37

A service that deploys the application: its commands (deploy, package, ...) run on the units of the selected deployment.

Deployers are never part of the application services: the CLI adds the units of the selected deployment (webda -d <deployment> <command>) as services only when one of their commands runs, and never injects a deployer by default.

Every deployer class declares implements Deployer itself, the compiler only reads the capability from the class own heritage clauses.

Example​

export class MyDeployer extends Service<MyDeployerParameters> implements Deployer {
@Command("deploy", { description: "Deploy my resources" })
async deploy() {
const parameters = resolveDeploymentVariables(this.parameters, getDeploymentVariables(this));
}
}

Webda Capability​

deployer