Rebuild goes into a loop

And (probably) a better long-term solution would be to either add those changes to your app.yml or to put your template somewhere outside of the /var/discourse tree