Closed maeve-fpf closed 3 years ago
I had to rebuild the requirements files locally, and while I tossed that commit out, it looks like it's causing a CI failure. I'm going to redo that.
https://github.com/freedomofpress/securethenews/pull/374 This should fix the run_dev and run_prod. The safety_check seems to be failing on a linting error though.
I ran black
to fix the lints so there is a bit more whitespace and quote-character noise, but it's the same changes. Thanks!
First site listed on https://github.com/freedomofpress/fpf-www-projects/issues/220
This overhauls the version script a bit to have better output (try it on
prod
vsdevelop
vs a detached HEAD), adds a test, and the content-type for/health/ok
.It probably doesn't matter for efficiency but (not a change from before) this still builds the text files at boot time and reads them on every request. We could, for efficiency, build once at container build time and read once at app startup.
If this looks good, I can go ahead and implement for other sites.