So I installed a new WP installation on a new droplet.
Logged in via the ipaddress. (ipaddress/wp-admin)
Meanwhile, I set up the domain name in cloudflare (subdomain) and pointed it to the ip.
In WP settings (still logged in with ip address), changed site settings from ipname to subdomain.
Boom! I got logged out and now it won’t let me log in (redirect loop at wp-login). I don’t think I copied the password even. :(
In shared hosting environments you’d change the site name settings in wp-config file. How do I go about doing it in digital ocean?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.