Yes, it happens, and it's difficult to catch those quirky mistakes in dev.
That's why I build a staging local server out of an old machine that I don't use anymore that's only on my home/office network that matches the exact same stack I use in production.
I deploy to the staging server first, test the hell out of it, and then when I'm confident, and only then, push to production.
In response to @jclermont
•