Same as many other responses here, ssh in and do the 3 line magic
cd /var/discourse git pull ./launcher app rebuild