Question

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 manage.py 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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

👋 @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).