openva / richmondsunlight.com

The Richmond Sunlight website.
https://www.richmondsunlight.com/
MIT License
12 stars 3 forks source link

Regenerate the legislators menu on each deployment #296

Open waldoj opened 5 years ago

waldoj commented 5 years ago

To ensure that the legislators menu is kept up to date, regenerate it on each deployment.

Steps

I'm nervous that, when this inevitably fails, there will be no legislators menu. That's something to think about.

waldoj commented 5 years ago

One solution to deal with failure is to output a static file each time, and then inject that into the template. That way, when this fails, it can fall back to using the prior run's static file.