Add smart server starting for production