MCPcopy
hub / github.com/microfeed/microfeed / publishProject

Method publishProject

ops/lib/utils.js:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 publishProject() {
39 const projectName = this.v.get('CLOUDFLARE_PROJECT_NAME');
40 const productionBranch = this.v.get('PRODUCTION_BRANCH', 'main');
41
42 // Cloudflare Pages direct upload uses branch to decide deployment environment.
43 // If we want production, then use production_branch. Otherwise, just something else
44 const branch = this.currentEnv === 'production' ? productionBranch : `${productionBranch}-preview`;
45 const wranglerCmd = `wrangler pages deploy public --project-name ${projectName} --branch ${branch}`;
46 console.log(wranglerCmd);
47 return this._getCmd(wranglerCmd);
48 }
49
50 _non_dev_db() {
51 return this.v.get('D1_DATABASE_NAME') ||

Callers 1

direct_upload.jsFile · 0.80

Calls 2

_getCmdMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected