Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django collectstatic not overwriting production files

I have collectstatic --noinput running each time I push to Heroku. New files get copied, but old files with changes don't get overwritten. Deleting a file and pushing to heroku however, replaces that one specific file as expected.

How can I get collectstatic to overwrite files with changes?

like image 683
aroooo Avatar asked Oct 05 '13 04:10

aroooo


1 Answers

Have you tried collectfast? https://github.com/FundedByMe/collectfast.

This plugin is designed for S3, and it compares the MD5 of the files so it will upload changed files.

like image 169
fasouto Avatar answered Oct 17 '22 16:10

fasouto