When shopify goes down, we update DNS to point www.loandsons.com to Heroku instead of Shopify. These updates should only be done when Shopify has been down for 15 minutes or longer.
Watch the Shopify status page for service restoration updates
DNS is managed by Cloudflare:
- Update the
www
CNAME target todevelopmental-damselfly-b27748byfaumgi0soylfmzfl.herokudns.com
. This maps to a custom domain configured in Heroku. - Delete the A record for
loandsons.com
. Do this before step 3 to avoid throwing a conflicting name error with the root (@
) CNAME record we're adding next. - Add a CNAME record
@
with targetthermal-sawfish-q5owfe95j1ojbky8wubrijgl.herokudns.com
. This also maps to a Heroku custom domain.
- Update the
www
CNAME record target toshops.myshopify.com
. This is the Primary domain in Shopify. - Delete the
loandsons
CNAME record. This allows us to create A record next. - Add an A record for
loandsons.com
pointing to23.227.38.32
. This is a Third-party domain in Shopify and will redirect to the www version.
- In the store admin > Online Store > Domains, double check that the Primary domain and Third-part domains are showing as disconnected for site down and connected for site up.
- When disconnected, both www.loandsons.com and loandsons.com should show the Heroku page.
- When connected we're back at Shopify again.
- If the site isn't resolving to Heroku, double check the app settings > Domains in case the DNS target has changed from what's documented here (unlikely).
Using @
in a CNAME record causes cloudflare to "flatten" the request to an A record. Since Heroku apps are ephemeral, we can't just point the existing A record to a Heroku IP when Shopify goes down. Instead, we must use a root CNAME to achieve the same result.