My Digital Ocean droplet has a long name including “…1vcpu-1gb-…”. Now that I’ve resized the droplet from its humble beginnings, that’s no longer accurate. I’d like just to call it “Discourse”. Apart from changing it on the Digital Ocean web interface, what else do I need to do?
I think I’d also need to
sudo hostnamectl set-hostname Discourse
sudo nano /etc/hosts to edit the first line to say 127.0.1.1 oldname newname (i.e. 127.0.1.1 ...1vcpu-1gb-... Discourse).
That should be fine. The most “proper” thing to do is to make the droplet name your hostname so that reverse ip lookups work. The machine’s notion of its hostname doesn’t matter much if you’re running just discourse.