Remove old URL references

Hey everyone,

As I changed the name and url of my site, I am wondering how to remove all references to the old name and location.

What I did was to follow the tutorial: here.

However when I restart the Ghost Server or do a ghost doctor command, I see old references such as:

user@ghostserver:/var/www/ghost$ ghost restart
+ sudo systemctl is-active ghost_old-url-site
+ sudo systemctl restart ghost_old-url-site
✔ Restarting Ghost

or:

user@ghostserver:/var/www/ghost$ ghost doctor
✔ Checking system Node.js version
✔ Checking logged in user
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
✔ Checking operating system compatibility
✔ Checking for a MySQL installation
+ sudo systemctl is-active ghost_old-url-site
? Sudo Password [hidden]
Instance is currently running
ℹ Validating config [skipped]
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking binary dependencies

or:

user@ghostserver:/var/www/ghost$ ghost ls
+ sudo systemctl is-active ghost_old-url-site
? Sudo Password [hidden]

│ Name │ Location │ Version │ Status │ URL │ Port │ Process Manager │

│ old-url-site │ /var/www/ghost │ 3.28.0 │ running (production) │ https://mydomain.com │ 2369 │ systemd │

I have deleted the old conf files in /var/www/et-ghost/system/files

But is there anything else?
I just want to make sure no references of any kind or left in the server, backend or frontend.

Thanks :slight_smile:

Any ideas other than doing a clean install from scratch?

If I understand correctly, you’re seeing issues with the instance name being incorrect. This won’t affect your ghost installation since it’s just a name that’s used by the CLI to identify it and create configuration files. As long as everything is working from the Ghost side (e.g. proper domain name, the new domain is serving traffic, etc.), there’s nothing to worry about :slight_smile:

Hey @vikaspotluri123

Thank you for the answer, I just was not sure that since there were still some references in the backend that it would not show in the frontend. Because I do not want any reference to it to appear anywhere.