Migrating from DesktopServer

If you go that route you’ll need to make sure that the database information in wp-config.php matches what’s in the “Database” tab for that site in Local.

Also, you may need to run a WP-CLI search-replace to update the domain if you change it. Here’s how you can do that: Problem of redirecting the local site to online site