How to use gcx - 1 common examples

To help you get started, we’ve selected a few gcx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / gcp-metadata / system-test / system.ts View on Github external
async function deployApp() {
  const targetDir = path.join(__dirname, '../../system-test/fixtures/hook');
  await gcx.deploy({
    name: fullPrefix,
    entryPoint: 'getMetadata',
    triggerHTTP: true,
    runtime: 'nodejs8',
    region: 'us-central1',
    targetDir,
  });
}

gcx

An API and CLI for deploying Google Cloud Functions in Node.js.

MIT
Latest version published 12 months ago

Package Health Score

54 / 100
Full package analysis

Popular gcx functions