Publ: Development Blog

News and updates about Publ

The downside to running on Heroku

Posted Wednesday, June 27 at 8:01 PM (6 years ago)

So, sorry to anyone who was subscribed to the RSS feed for this and got spammed with v0.1.24 release announcements. I made a mistake and pushed a version of the entry that didn’t have a canonical ID assigned yet, and as a result, every time Heroku spun up, it assigned a new ID. This is something that’s happened before and I really ought to do something about it.

Three things come to mind:

  1. Figuring out how to always make IDs get assigned in an idempotent manner (hard to do correctly)
  2. Don’t run on Heroku so the assignments persist between executions (easy)
  3. Add a pre-push hook to the repo that verifies that all entries alread have an assigned ID (???)

2 seems like the easiest approach for now, so that’s what I’ll probably do.

Verson 0.1.24 released

Posted Wednesday, June 27 at 7:55 PM (6 years ago)

New functionality:

  • The image rendition cache now gets periodically purged; the default is to delete renditions which haven’t been used in the last week (this can be disabled)

Bug fixes:

  • entry.title can now accept the no_smartquotes parameter, which is necessary in Atom feeds
  • entry.card now uses the same Markdown extensions as entry.body