Updating / Rebuilding Discourse to latest version irreversibly breaks website

Hard for anyone to guess that! Glad you figured it out.