My app currently has a single service which is runs a node app. But I also have a public folder which I’d like to expose. Since the app occasionally crashes (and takes a few seconds to get back up), this occasionally results in assets from the public folder to return a 504 error.
I noticed the “services” in the app spec yaml can be an array. Is there an easy way to add a simple http server that just makes a folder public, without having to add a github repo or anything (similar to adding the directory to nginx configs)?
Or maybe I can add it as a script on the same github project with a different run command? Would this cause it to have to download my project twice?
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!