From e33c79c305185d500627e44a6cd8887063269033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=99=93=E6=80=A1?= Date: Fri, 28 Jul 2023 06:44:16 +0000 Subject: [PATCH] create s.yaml content --- s.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 s.yaml diff --git a/s.yaml b/s.yaml new file mode 100644 index 0000000..0c97fcc --- /dev/null +++ b/s.yaml @@ -0,0 +1,46 @@ +edition: 1.0.0 +name: my-framework-app +access: default +services: + framework: + component: fc + props: + region: cn-hangzhou + service: + name: serverless-devs-application + function: + name: rc-comp-6929 + description: Initialize + runtime: custom + environmentVariables: + PATH: >- + /opt/nodejs14/bin:/usr/local/bin/apache-maven/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin:/opt/bin:/code:/code/bin + NODE_PATH: /opt/nodejs/node_modules + LD_LIBRARY_PATH: >- + /code:/code/lib:/usr/local/lib:/opt/lib:/opt/php8.1/lib:/opt/php8.0/lib:/opt/php7.2/lib + layers: + - acs:fc:cn-hangzhou:official:layers/Nodejs14/versions/2 + memorySize: 128 + cpu: 0.05 + timeout: 60 + codeUri: ./ + diskSize: 512 + caPort: 9000 + customRuntimeConfig: + command: + - npm + args: + - run + - start + triggers: + - name: httpTrigger + type: http + config: + authType: anonymous + methods: + - GET + - POST + - PUT + - DELETE + - HEAD + - PATCH -- Gitee