Added Gemfile.lock back into repo as it wasn't the cause of the deployment bug - in future just recreate and push a new Gemfile.lock before deploying.