How to get files from app platform?

Hi everyone, I followed the tutorial to deploy a Django app to the app platform. My question is, how do I get files from the app platform? Example: "python dumpdata > db.json is exporting my data as a JSON file. I could use this data to run some tests with “live data” offline in dev mode. But how do I get this file downloaded? Could someone give me a hint? Just checking it in with git was my first idea, but this was unfortunately not working. Thanks Sebastian

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Jon Friesen
DigitalOcean Employee
DigitalOcean Employee badge
July 25, 2022

👋 @sefriedrich

App Platform uses ephemeral filesystems so on each deploy all changes that happen during that deployment are lost.

Two options you could try are:

  1. Add a HTTP route on your app that lets you download the file (make sure this route is secured).
  2. Upload your file to DigitalOcean Spaces and then download them to your dev machine (or wherever you need the data).

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up