only restart server if production