I have successfully deployed staging.MyWebsite.com. It’s working(obviously, I don’t own MyDomain.com but you know what I mean). Now it’s time to move the main domain www.MyWebsite.com! However, I am puzzled. MyWebsite.com is currently operational. What are the best practice steps? Here are a couple guess.
Plan A (I don’t like this at all)
- Have group_vars/production files ready & Have db ready - search/replace domain
- Change DNS, point to DigitalOcean server IP
- Wait until the domain point to the server
- Wait. Check. Wait, not yet… check… NOW IT’S SWITCH! PUSH THEM TO SERVER NOW NOW NOW
Plan B
- Have group_vars/production files ready & Have db ready - search/replace domain
- Provision to a production server in DigitalOcean
- Change DNS
- Wait. Check. Wait.
- Deployment. Replace DB
Plan C
- Have group_vars/production files ready & Have db ready - search/replace domain
- Provision to a production server in DigitalOcean
- Deploy with IP address (Can I? ./bin/deploy.sh production 123.456.789.000)
- Replace DB
- Change DNS
Or… can someone demolish my Plan A, B &C and create Plan D?
With a huge support from this community forum, my trial errors experiments started paying off. This is the first time I am doing it for production website, I am bit nervous. Any suggestion/tips is appriciated
And lastly, is there any professional service so I could get some help if things get terribly bad?
Thank you!