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!
Line 4 should read “Do I need to install SQLite via a build script?”
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/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.