I am following the install guide that published here as official Discourse plugin install guide. All plugins have a link to this guide. In my case it destroyed our install and we even can not recover it, rebuilt it even under initial yml settings.
I am pretty sure that we ran it under root. After following the instruction our install was killed and we can not rebuild it even under initial yml settings.
My best guess is that you inserted a tab or something else that makes the yml invalid.
The error is about the “echo” at the very end of the yml file, which suggests that there’s a formatting issue somewhere before that.
Did you save a copy of the file before you edited it, or have you attempted to edit it to restore it to what you think its state was before you edited it?
A thing you can try is to rename your app.yml, take note of the values (especially the SMTP stuff) and run ./discourse-setup again. That’ll give you a working app.yml.
this starts the forum.
Will running ./discourse-setup keep the existing forum data or I should backup first and restore it? Many thanks for your support