SQLite runs in memory, and backs up its data store in files on disk. While this strategy works well for development, Heroku’s Cedar stack has an ephemeral filesystem. You can write to it, and you can read from it, but the contents will be cleared periodically. If you were to use SQLite on Heroku, you would lose your entire database at least once every 24 hours.
This means we need to find another place to host our website, and Heroku will be a temporary deployment.
This may be one of the reasons to use an ORM over direct Sqlite3 database connections...
According to the Heroku docs,
This means we need to find another place to host our website, and Heroku will be a temporary deployment.
This may be one of the reasons to use an ORM over direct Sqlite3 database connections...