By skeddtemp
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.