update gateway to production mode