In case you installed Discourse in a subfolder - Serve Discourse from a subfolder (path prefix) instead of a subdomain
Remove those 2 lines from the app.yml config before your rebuild the app:
- rm public/uploads
- rm public/backups
Otherwise will it remove your existing uploads and backups.