I would like to deploy a function from repo “XYZ” on app platform. That repo has a project.yml that contains multiple functions. I am only interested in deploying one, how can i specify which to deploy within my app spec?
Also, I have route path /functions and a rewrite /abc to /functions/ns/name but when deployed /functions/ns/name works but /abc gives me error "error": "The requested resource does not exist."
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!
Heya, @1001105920ontarioltd
I believe that on the App Platform, you can’t pick just one function out of a Functions repo by pointing at a multi-function project.yml. App Platform will deploy what the Functions project defines. There isn’t an app spec knob to select a single function from that file. The usual workaround is to split that function into its own repo/project.yml (or create a second project.yml that only includes the one you want) and deploy that.
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.