Changing the invite URL?

You should rebuild with a proper domain name. Discourse is not designed to work from an IP address. Rebuilding just affects global settings controlled by the global config in app.yml, it does not harm any data.