Hi!
I am currently running a node.js code via an app in DigitalOcean, which is located in my github repository. The result of the code are some images that should be stored in the github repository. The console of the app tells me that the images have been saved in the workspace, but I don’t understand what this is supposed to be. Does anyone have an idea?
Many thanks in advance!
Regards Max
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.
Hey Max! 👋
The “workspace” you’re seeing in the app logs refers to the local file system of your DigitalOcean App Platform instance.
When your Node.js app saves files, they’re stored in the instance’s local storage temporarily.
However, the App Platform storage is ephemeral. This means that any files saved there will be lost if the app restarts, scales, or redeploys.
If you want your images to persist, you’ll need to use an external storage solution. DigitalOcean Spaces (an S3-compatible object storage) is a great option for such use-cases! You can configure your app to upload the images to Spaces instead of relying on local storage.
Here’s a guide to get you started with Spaces:
And here is a link to the official DigitalOcean documentation:
Let me know if you have any questions!
- Bobby