Error when upgrading Discourse

these are the steps that I used to upgrade discourse. it works

@Falco @Ed_S Thank you for your help

cd /var/discourse
git pull origin main
./launcher rebuild app