This page: https://docs.digitalocean.com/products/app-platform/how-to/add-deploy-do-button/
Show ‘spec:’ at the top of a number of example specs.
This page, the reference, doesn’t show ‘spec’ as a valid item in the YAML. https://docs.digitalocean.com/products/app-platform/references/app-specification-reference/
What am I missing?
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello,
The difference between the two is the following:
The deploy button that you add to your GitHub repository uses the YALM file at:
.do/deploy.template.yaml
.The Reference for App Specification documentation is not related to the deploy button but instead it can be utilized with tools like the
doctl
command-line tool or the DigitalOcean API.The
spec
part is only needed for the deploy button in GitHub. In case that you want to add a button to your repository, you need to follow the first link, and if you want to utilize the DigitalOcean API or thedoctl
command-line tool, then you need to follow the second link.Regards, Bobby