Files
services/examples/function/deploy/node/deployAFunction.js
2021-10-11 11:54:53 +01:00

16 lines
407 B
JavaScript
Executable File

import * as fx from "m3o/function";
// Deploy a group of functions
async function DeployAfunction() {
let functionService = new fx.FunctionService(process.env.MICRO_API_TOKEN);
let rsp = await functionService.deploy({
entrypoint: "helloworld",
name: "my-first-func",
project: "tests",
repo: "github.com/crufter/gcloud-nodejs-test",
});
console.log(rsp);
}
await DeployAfunction();