The Bad Gateway page will be there for a while, as this happens on my forum as well. Give about 5-10 minutes, it should be alright.
If you see a 504 Timeout error, you can wait a while more and periodically reload te page. At least, that’s what I do. Your forum should be up after that.