The url in config is baked into the content
Ghost writes absolute addresses into generated output: the sitemap, the RSS feed, canonical tags and Open Graph metadata all carry the value of url from config.production.json.

Move the files and forget that value and every link on the new host points back at the old one, which looks perfect right up until the old host is switched off.