Question

Adding a database?

Posted December 30, 2020 356 views
PythonPython FrameworksDigitalOcean App PlatformFlask

How do I add a predefined sqlite database as part of the deployment? Thank you

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.

×
Submit an Answer
1 answer

Hi there,

I would personally not go for SQLite as this will be stored on the Docker container, so the next time you deploy it will be lost as a new container will be started.

I believe that it is better to use a Database component from the App Platform directly.

Regards,
Bobby