Upgrade failed - could use some help to try and fix using SSH

Hi!
I have upgraded and the page gave me a 504 Gateway Time-out error.
I did this, and it still doesn´t work.

cd /var/discourse
git pull; ./launcher rebuild app

Do you have any idea why it still not working?