Notes
Short observations from problems I hit while building and running software. Each one cost me time, and I would like it to cost you less.
docker restart does not re-read your env file
I added a variable to an env file on two servers and restarted the container. The application kept running on its old configuration.
DevOps
A strict CSP silently stopped every button on a Next.js site
script-src 'self' with no nonce blocks the inline scripts that hydrate a Next.js App Router page. The page looks normal and nothing responds.
Cybersecurity
In Tailwind v4, plain CSS beats utility classes regardless of order
A bare rule in globals.css silently overrode py-* utilities on the same element and flattened a page's vertical spacing.
Software Engineering
A bind mount from the repository is empty on a CasaOS install
An init script mounted from a git clone does not exist on a store install, so the database role was never created.
Infrastructure