Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
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?
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.×