Replies: 5 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
要不要直接统一都用projects ,可以方便统一规范 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Name: MyWebsite
Stage: dev
Global:
Region: cn-hangzhou
Applications:
ApplicationName1:
Component: django
Properties:
Region: cn-hongkong
Service:
Name: serverless-china
Function:
Name: test
Src: ./ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Name: MyWebsite
Version: 规范的版本 # 默认最新的
Stage: dev
Global:
Region: cn-hangzhou
Applications:
ApplicationName1:
Component: fc@0.0.2
Access: release
Extends:
deploy:
- Hook: s build
Src: ./
Pre: false
Properties:
Region: cn-hongkong
Service:
Name: serverless-china
Function:
Name: test
Src: ./
|
Beta Was this translation helpful? Give feedback.
0 replies
-
# s.yaml s.dev.yaml s.test.yaml
# s deploy s deploy -t s.dev.yaml
# s deploy s deploy -t s.test.yaml
Name: MyWebsite
Version: 规范的版本 # 默认最新的
Provider: alibaba # 全局变量,优先使用app里面的
Access: release # 全局变量,优先使用app里面的
Global:
Region: cn-hangzhou
SecretID: ${ENV(SecretId)}
Applications:
APP-1: # 变量
Component: fc@0.0.2
Provider: alibaba
Access: release
Extends:
deploy:
- Hook: s build
Src: ./
Pre: false
Properties:
Region: cn-hongkong
Service:
Name: serverless-china # serverless-china
Function:
Name: test
Src: ./
APP-2: # 变量
Component: flask
Properties:
Src: /Users/jiangyu/WebstormProjects/serverless_test/anycodes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
目前Serverless devs的Yaml规范为:
例如:
希望升级之后的规范为:
这其中,
Project
和Projects
仅可以出现一个,即要不出现Project
,要不出现Projects
。例如,单个Project:
例如一个Yaml中有多个Project:
Beta Was this translation helpful? Give feedback.
All reactions