Note / Practice

A short checklist before a config change

Intermediate1 min6 Dec 2026

Production config fails in boring ways: a missing comma, an edited file on the wrong server, a reload that never happened. A short routine catches those before users do.

  1. Copy the current file beside itself, with the date in the name.
  2. Change one setting. A diff should show that line and nothing else.
  3. Validate the format with the tool the runtime already ships, such as a JSON parse or nginx -t.
  4. Reload, hit one URL that depends on the setting, and only then delete the backup.

Related