Report this

What is the reason for this report?

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

Posted on October 13, 2021

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.