Question

Is the Apps spec documentation correct?

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?

Subscribe
Share

Submit an 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.

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 the doctl command-line tool, then you need to follow the second link.

Regards, Bobby