I need a bit of advice from devs on how to handle this situation, please.
I have to VPS’s a staging and a production one. They’re both identical running same OS’s.
On the Staging VPS I have a dummy domain where I develop an e-commerce site and I test functionalities, etc.
On the Production VPS, I have the desired domain that is accepting connections from the public.
When build stuff on the Staging and all works well, I want an easy way to migrate a copy of the site from Staging VPS to Production VPS.
How can I do that simple?
How to change the URL of the site from Staging to Production and how to make sure everything is migrated nicely. Is there an ee command to update the URL as it used to be before?
I use Digital Ocean droplets.