Site responds 502 Bad gateway - is it Ruby?

All sorted now. Our best tech managed to make a new build and has even got LetsEncrypt to work!