./launcher rebuild app: failing out of nowhere (NoMethodError)

I don’t think discourse-setup does that.

In this case, let’s remove all lines from the after_ssl line until the end and try a rebuild.