Right now my staging server is accessed via IP address. Later I’m going to update the DNS records to point at it.
Rather than provisioning a new server at a new IP address I was thinking to just update this one “in place”.
Right now the group_vars/staging/wordpress_sites.yml
just points at the VPS’s IP address. So it looks something like:
wordpress_sites:
mywebsite.com:
site_hosts:
- canonical: 111.111.11.111
# redirects:
# - otherdomain.com
I was thinking to update it to something like:
wordpress_sites:
mywebsite.com:
site_hosts:
- canonical: www.mywebsite.com
redirects:
- mywebsite.com
as well as additionally turn on letsencrypt
ssl:
enabled: true
provider: letsencrypt
Will this work? Anything I should look out for?
Basically what I’m wanting to do here is making staging production.