Skip to content Skip to sidebar Skip to footer

Heroku-deployed Django Webpage Doesn't Update When DB Changes

I have deployed an app in Heroku using Django. The Django program uses a SQLite database db.sqlite3 on root directory to populate its page. Separately, there is also a Node.js scra

Solution 1:

You cannot use sqlite on Heroku.

An sqlite db is stored as a file on the local filesystem. But in Heroku the filesystem is ephemeral and is not shared between dynos. Every time you redeploy your app, or scale your process, or in your case launch a worker, you get a new filesystem with a different copy of the db file.

Use the proper Postgres support via the add-ons.


Post a Comment for "Heroku-deployed Django Webpage Doesn't Update When DB Changes"