rnbguy
rnbguy

Reputation: 1399

updating files while app runs on heroku

suppose if i open my heroku webpage, it update a file, like a database.

now i want to retrieve it.

i tried git pull, when done, i checked, it is the old file what i pushed last time. i tried heroku run bash and "cat"-ed the file, it gives old outputs. :/

but i can assure, the file is getting update, coz if i output the file content through server, like if i request for a particular path on my address, it will show the contents of that file on browser, then it shows updated data.

i have no idea why is this happening. any clue ?

i am using python3 with wsgiref module.

Upvotes: 0

Views: 207

Answers (1)

friism
friism

Reputation: 19279

You shouldn't use the dyno filesystem for persistent file storage (like databases). The dyno filesystems are ephemeral and changes are not reflected in the git repository associated with you app. Use one of the data storage add-ons instead: https://addons.heroku.com

Upvotes: 1

Related Questions