* Create a release script to soft-purge all rendered pages from the Redis cache * Set NODE_ENV * Pass the Redis database number as an option rather than in the URL * Change key scanning pattern based on Heroku metadata presence * Shorten purge TTL to 30 minutes * Only fail hard on Heroku production releases * Don't return TOO early or else we forget to resume the scanStream! * Correct ioredis command casing to all lowercase * Add unexpectedly necessary exit * Tweak wording of dry run logging * Add some polish * Prevent accidental soft-purging of the current release's keys * Simplify the key check * Fix lint error
4 lines
103 B
Plaintext
4 lines
103 B
Plaintext
web: NODE_ENV=production node server.js
|
|
|
|
release: NODE_ENV=production node script/purge-redis-pages.js
|