How to regenerate app.yml file if I delete it accidentally?

Hi @th21!

I’m still new here, but I believe that if you don’t delete your /shared directory, all your data will be safe. What the ./discourse-setup will change are the plugins, smtp settings and then run rebuild. I would wait for further confirmation, as I’m a new user, but I’m almost sure of that.

You can always do a backup and restore later as well. Check this article for more information on that.