I was trying to add more functions to my project.yml
but doctl sls deploy
deploys only the first one from the file. What am I doing wrong?
Below is the contents of my project.yml
where I have two functions web/opengraph
and ai/selection
.
When I run doctl sls deploy <directory>
I see that only ai/selection
got deployed, while I expect that every function will get deployed.
parameters: {}
environment: {}
packages:
- name: web
shared: false
environment: {}
parameters: {}
annotations: {}
functions:
- name: opengraph
binary: false
main: ""
runtime: python:default
web: true
webSecure: false
parameters: {}
environment: {}
annotations: {}
limits: {}
- name: ai
shared: false
environment: {}
parameters: {}
annotations: {}
functions:
- name: selection
binary: false
main: ""
runtime: python:default
web: true
webSecure: false
parameters: {}
environment: {}
annotations: {}
limits: {}
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Looks like
web
is not a good name for package anddoctl
basically skips this package.