Installing/using SQLite on App platform

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?


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.

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

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