Home

Netlify File Digest Deployment

This website is hosted on Netlify (similar to GoDaddy). A nice feature they provide is a well-documented API, and with it it's possible to do a file-digest site update. To update a website you can upload a folder containing the entire website, but this is very slow if your website is large and wasteful if only a few files have changed. File-digest lets the server determine which files specifically have changed, so you just need to upload those ones. Read the Netlify documentation for more details.

I wrote a simple Python script to do this in my own workflow, implementing the sequence of API calls in the documentation above. It just needs the requests library to run, running with --help should give enough information to get started.