./launcher rebuild app 命令未找到

Can you share the exact commands you’re running, and the output you’re seeing (feel free to redact IP addresses/hostnames if you prefer)? /var/www/discourse sounds like you’re inside the docker container, rather that on your server.

You should be doing something like:

ssh user@forum.example.com
cd /var/discourse
git pull
sudo ./launcher rebuild app