I’m having some trouble getting the App Platform to recognize the format of my
.do/deploy.template.yaml file. My in-progress template lives here.
While a deployed app’s spec seems to have all the resources (
databases, etc.) at the top-level, the “template” file requires that they be nested beneath a root
spec key. This much makes sense (I guess?), but as far as I can tell, the setup wizard doesn’t really acknowledge anything within it.
It automatically detects the right type of application, but doesn’t pick up any additional Components, the declared databases, or prompt for the global
envs I’ve defined.
The app spec reference is clear, but the deploy button how-to doesn’t quite fill in the gaps—or more to the point, doesn’t offer any more advice on how to deploy templates that define more than just a web Component.
doctl apps spec validate .do/deploy.template.yaml appears to only support live schema, not the template structure, nor does it confirm what Components would be created.
Any help or (complex) examples is appreciated!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!