BeatlesAnswers.org Under construction

A pre-publish scan caught a truncated page as deploys became automatic

By · Build log; logged

This week the risk was in publishing, not writing. A scan run before the site is mirrored for release caught a freshly enriched page that had been cut short on disk. Deploys moved to an automated script that quickly needed guards of its own, and every page lost its placeholder advertising code.

The scan before the mirror

Before v12 is copied to the Git folder for release, a scan reads the raw bytes of all 298 files, strips trailing null bytes and checks that each still ends with </html>. On 3 July it flagged one page, I Saw Her Standing There, which had been cut off partway through by the same environment fault described in the entry on truncated pages. The write had reported success, and the file-reading tool showed the intact version from a buffer while the file on disk was incomplete. The page was rebuilt and checked again before the mirror ran. The rule stands: confirm a write on disk, never through the tool that did the writing.

The week’s enrichment pages, from the Please Please Me sessions, also corrected two inherited take counts and removed a widely repeated studio detail because no primary source supports it.

An automated deploy and its first guards

Pushes now run through a shared deploy script that makes a temporary copy of the repository, points it at the mirror folder, and commits and pushes with a narrowly scoped access token, with no desktop app or manual step. Its first days exposed two problems on this site: a mistake in handling the credential, and a local history that had diverged from the published one. The responses were an immediate token rotation, a file-mode guard in the script, and a standing rule that a diverged history stops the push and goes to a person rather than being resolved by guesswork.

Clean-up before advertising review

Housekeeping went out through the new route. The homepage lost its em dashes under the house punctuation rule, which took three passes: the character itself, its HTML entity, and the leftovers each pass created. Every page also lost its pre-approval advertising code: 288 auto-ads script blocks and 711 empty ad containers. Only the account-verification meta tag and ads.txt remain, because a reviewer reads empty ad slots as broken layout.