Live reload stopped working

Hi.

Recently, I’ve noticed that live reload stopped working on my localhost installation where I’m developing my website. When it happened for the first time, and I was poking around parts of the theme I never used before, I spent several hours trying to figure out why my changes were not visible. It hadn’t occurred to me to restart Ghost.
I’m on version 5.120.0, Node.js version 20.19.0, and everything has been working fine with the same template for years. All of a sudden, I need to restart Ghost after each change, which is quite annoying.

Does anyone have any ideas?

Cheers.

I’m under the impression that you only need to restart ghost when you’re messing with the configuration file.
Maybe it’s a cache issue?

Thank you, KBExit, for your input. You’re correct regarding the restart, but I need to restart Ghost after every hbs template change; nothing to do with the configuration.

It may well be a cache issue, but I have no clue how to address that.

What is your stack like where you’re running Ghost?

Ghost running in development mode won’t require a restart for changes to existing template files although if you add a new template file you’d need to restart.

Ghost running in production mode will need a restart for every file change.

How are you running Ghost? You mention your localhost install, how did you set that up and how are you starting it?

You may also be experiencing browser cache issues, although Ghost doesn’t normally instruct browsers to cache. Options there are hard refreshing Shift+Ctrl/Cmd+R or keep the dev tools open with the “Disable cache” option checked on the Network tab.

2 Likes

Thank you for your engagement @KBExit. I’m running Ghost on elementaryOS 8 (Ubuntu 24.04.3 LTS-based Linux), as I was years before this happened, and had never needed to restart Ghost to see the changes I’ve made to HBS templates.

Thank you @Kevin for your input. I’ve installed Ghost following the official instructions on their website, and I’m starting it with ghost start as I have always had the last 5 years that I’m running it. I’m just puzzled why all of a sudden the live reload function stopped working.