MCPcopy Create free account
hub / github.com/cfworker/cfworker / deploy

Method deploy

packages/dev/src/cli/deploy-command.js:81–99  ·  view source on GitHub ↗

* @param {string} url

(url)

Source from the content-addressed store, hash-verified

79 * @param {string} url
80 */
81 async deploy(url) {
82 const startTime = Date.now();
83 logger.progress(`Deploying worker...`);
84
85 await deployToWorkersDev({
86 code: this.bundler.code,
87 accountEmail: this.accountEmail,
88 accountId: this.accountId,
89 apiKey: this.apiKey,
90 name: this.project,
91 site: this.site,
92 kv: this.kv
93 });
94
95 logger.success(
96 `Deployed worker to ${chalk.cyan.underline(url)}`,
97 Date.now() - startTime
98 );
99 }
100
101 dispose() {
102 this.bundler.dispose();

Callers 2

updateMethod · 0.95
executeMethod · 0.95

Calls 3

deployToWorkersDevFunction · 0.90
progressMethod · 0.45
successMethod · 0.45

Tested by

no test coverage detected