Report this

What is the reason for this report?

Installing/using SQLite on App platform

Posted on December 18, 2020

I’ve got a PHP app deployed to the App platform and would like to use a SQLite3 DB with it. I’m new to SQLite (and the App platform), but familiar with MySQL. My boss suggested using a SQLite database since it’s a real lightweight database.

Do I need to SQLite via a build script?

Thanks!



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.

Line 4 should read “Do I need to install SQLite via a build script?”

👋 @brockcaldwell33

App Platform apps are deployed in containers which are ephemeral. In events such as new deployments, your app crashes, or there are cluster issues and we evacuate your app to another cluster all of the filesystem data will be gone. For this reason we do not recommend using SQLite on App Platform.

We do offer a low cost PostgreSQL dev database which can be upgraded to a more powerful, highly available production database when you’re ready which would be a great choice. Of course, any database hosted outside of App Platform (like MySQL) will also work.

Another option is to use Lightstream to replicate the sqlite db on s3 or digitalocean spaces

https://litestream.io/guides/s3/ https://litestream.io/guides/digitalocean/

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.