Seriously???
In that case the real problem is pushing directly from a dev machine to prod.
It is simply crazy not to use a staging server.
I bet that even if the Dev machine has the same OS as prod a lot of shit happens when not using a proper staging server (been there seen that).
So the production problems that you experienced are completely unrelated to the OS on the dev machine.
They are simply caused by the wrong deployment process.