mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 11:15:12 +00:00
17 lines
441 B
JavaScript
Executable File
17 lines
441 B
JavaScript
Executable File
const { FunctionService } = require("m3o/function");
|
|
|
|
// Deploy a group of functions
|
|
async function deployAfunction() {
|
|
let functionService = new FunctionService(process.env.MICRO_API_TOKEN);
|
|
let rsp = await functionService.deploy({
|
|
entrypoint: "helloworld",
|
|
name: "my-first-func",
|
|
project: "tests",
|
|
repo: "github.com/m3o/nodejs-function-example",
|
|
runtime: "nodejs14",
|
|
});
|
|
console.log(rsp);
|
|
}
|
|
|
|
deployAfunction();
|