How can i configure a static route for a DO app?

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?


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.

If i add another service, will it still have access to the same files as the first service?

edit: seems like services demand that there is a git source, meaning it would download a whole other copy and run it