Only run update in production mode.