# Live Reload not detecting changes after first edit

**URL:** https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155
**Category:** support
**Created:** [September 10, 2018, 10:54pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155 "2018-09-10T22:54:58Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![mojoa](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mojoa](https://discourse.gohugo.io/u/mojoa)
#### Post date: [September 10, 2018, 10:54pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/1 "2018-09-10T22:54:58Z")

</div>

Hugo is not recognizing changes to config.toml after the first edit for me.  
I see 7 separate issues filed against Hugo Live reload and I am not sure if this is already a known issue.  
I read thru the published documentation on live reload.  
I am using Introduction Theme unchanged except for attempted edits to config.toml  
Is there something I am missing? Thanks!

Steps:  
Start Hugo server which declares “watching for changes in config.toml”  
open config.toml in vi editor  
Make change to a param called tagline write change  
View “Change Detected, rebuilding site”  
View change in browser  
Make another change to tagline and write change  
View absence of “Change Detected” issued from Hugo

```auto
[root@fedora28 t2]# hugo server -D --baseURL="http://192.168.1.79/" --bind="192.168.1.79" --port=80

                   | EN  
+------------------+----+
  Pages | 30  
  Paginator pages | 0  
  Non-page files | 0  
  Static files | 35  
  Processed images | 0  
  Aliases | 0  
  Sitemaps | 1  
  Cleaned | 0  

Total in 229 ms
Watching for changes in /home/ktst/hu2/t2/{content,data,layouts,static,themes}
Watching for config changes in /home/ktst/hu2/t2/config.toml
Watching for config changes in /home/ktst/hu2/t2/themes/introduction/config.toml
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://192.168.1.79:80/ (bind address 192.168.1.79)
Press Ctrl+C to stop

Change detected, rebuilding site
2018-09-10 18:07:58.816 -0400
Total in 6 ms
^C[root@fedora28 t2]# hugo version
Hugo Static Site Generator v0.47.1 linux/amd64 BuildDate: 2018-08-20T08:16:52Z
[root@fedora28 t2]# 

```

---

<div class="post-metadata">

### Author: ![mojoa](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mojoa](https://discourse.gohugo.io/u/mojoa)
#### Post date: [September 11, 2018, 4:52pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/2 "2018-09-11T16:52:53Z")

</div>

I narrowed this issue down a bit.  
Installed v.48  
Made new directory  
ran hugo newsite [example.com](http://example.com)  
cd to [example.com](http://example.com)  
ran hugo server  
Observed Watching config.toml  
edited config.toml  
Observed change detected timestamp  
Subsequent editing of config.toml fails to rebuild site or change time stamp.

Do forum experts think this is expected behavior or should I file a bug report?  
Thanks!

---

<div class="post-metadata">

### Author: ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)
#### Post date: [September 12, 2018, 3:49am UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/3 "2018-09-12T03:49:25Z")

</div>

What exactly are you changing in your

> subsequent editing of config.toml

So that we can attempt to reproduce this

---

<div class="post-metadata">

### Author: ![mojoa](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mojoa](https://discourse.gohugo.io/u/mojoa)
#### Post date: [September 12, 2018, 2:02pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/4 "2018-09-12T14:02:20Z")

</div>

Hugo self generates a config.toml when “hugo sitenew” is issued.

> **[Install Hugo](https://gohugo.io/getting-started/installing/#2-run-the-command)**
>
> Install Hugo on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine where the Go compiler tool chain can run.

I edited the title line.

```auto
 title = "My New Hugo SiteZ"

```

While watching the bash window which is running

```auto
[root@fedora28 example.com]# /usr/local/bin/hugo server

                   | EN  
+------------------+----+
  Pages | 3  
  Paginator pages | 0  
  Non-page files | 0  
  Static files | 1  
  Processed images | 0  
  Aliases | 0  
  Sitemaps | 1  
  Cleaned | 0  

Total in 6 ms
Watching for changes in /home/ktst/huskel/example.com/{content,data,layouts,static}
Watching for config changes in /home/ktst/huskel/example.com/config.toml
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
    
Change detected, rebuilding site
2018-09-11 12:48:19.158 -0400
Total in 19 ms

```

---

<div class="post-metadata">

### Author: ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)
#### Post date: [September 12, 2018, 3:08pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/5 "2018-09-12T15:08:39Z")

</div>

I used these steps when attempting to reproduce your issue. But I could not reproduce it.

1. Install Hugo 0.48
2. `hugo new site example.com`
3. `cd example.com`
4. `git init`
5. `git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke`
6. Open `config.toml` and add line `theme = "ananke"`
7. `hugo new posts/my-first-post.md`
8. `hugo server -D`
9. Open `config.toml` and edit line `title = "My New Hugo Site"` to be `title = "My New Hugo SiteZ"`

---

<div class="post-metadata">

### Author: ![mojoa](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mojoa](https://discourse.gohugo.io/u/mojoa)
#### Post date: [September 12, 2018, 4:10pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/6 "2018-09-12T16:10:54Z")

</div>

The first edit of config.toml produces change detected with a timestamp.

Subsequent edits of config.toml are not producing the change detected message for me.

Is that what you are testing?

---

<div class="post-metadata">

### Author: ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)
#### Post date: [September 12, 2018, 4:20pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/7 "2018-09-12T16:20:23Z")

</div>

You said that _live reload is not detecting changes after first edit_, so that is what I tested.

So now are you saying that your site builds fine, but you are not seeing an updated timestamp when editing `config.toml`? Please be specific.

If that is the case, I cannot reproduce that issue either. Below is my console output after multiple edits to `config.toml`. As you can see, it shows the timestamp each time.

```auto
MACHINENAME:example.com username$ hugo server -D

                   | EN  
+------------------+----+
  Pages | 10  
  Paginator pages | 0  
  Non-page files | 0  
  Static files | 3  
  Processed images | 0  
  Aliases | 1  
  Sitemaps | 1  
  Cleaned | 0  

Total in 15 ms
Watching for changes in /Users/username/Sites/example.com/{content,data,layouts,static,themes}
Watching for config changes in /Users/username/Sites/example.com/config.toml
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Change detected, rebuilding site
2018-09-12 11:13:37.275 -0500
Total in 2 ms

Change detected, rebuilding site
2018-09-12 11:13:45.274 -0500
Total in 2 ms

```

---

<div class="post-metadata">

### Author: ![mojoa](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mojoa](https://discourse.gohugo.io/u/mojoa)
#### Post date: [September 12, 2018, 4:34pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/8 "2018-09-12T16:34:09Z")

</div>

What Operating system are you testing on?

I am using Fedora 28 and Amazon ec2 Linux.

---

<div class="post-metadata">

### Author: ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)
#### Post date: [September 12, 2018, 4:58pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/9 "2018-09-12T16:58:28Z")

</div>

I used MacOS High Sierra for my above testing.

Maybe someone else who is also on Fedora can help you.

---

<div class="post-metadata">

### Author: ![mojoa](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mojoa](https://discourse.gohugo.io/u/mojoa)
#### Post date: [September 12, 2018, 5:00pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/10 "2018-09-12T17:00:53Z")

</div>

Thanks for testing.

This may very well be OS dependent.

---

<div class="post-metadata">

### Author: ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)
#### Post date: [September 13, 2018, 12:38am UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/11 "2018-09-13T00:38:15Z")

</div>

Hi,  
Have you read through this post: [Hugo server --watch not... er... 'watching"](https://discourse.gohugo.io/t/hugo-server-watch-not-er-watching/1592) ?

---

<div class="post-metadata">

### Author: ![mojoa](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mojoa](https://discourse.gohugo.io/u/mojoa)
#### Post date: [September 13, 2018, 2:23am UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/12 "2018-09-13T02:23:20Z")

</div>

Thanks for this reference.  
Not sure what to gather from it though.  
I found out thru testing that hugo does detect all changes to a test.html file in the static folder which tells me detection of changes is possible, but is being treated somewhat differently for the config.toml file.  
I went ahead and created an issue.

> <https://github.com/gohugoio/hugo/issues/5205>

---

<div class="post-metadata">

### Author: ![sakumatto](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sakumatto/32/6422_2.png) [@sakumatto](https://discourse.gohugo.io/u/sakumatto)
#### Post date: [September 13, 2018, 4:52pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/13 "2018-09-13T16:52:22Z")

</div>

In your first post you mentioned that you had several errors. My experience has been that when Hugo live does NOT rebuild on the fly, it has been due to errors creeping in somewhere.

---

<div class="post-metadata">

### Author: ![mojoa](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mojoa](https://discourse.gohugo.io/u/mojoa)
#### Post date: [September 13, 2018, 5:25pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/14 "2018-09-13T17:25:08Z")

</div>

Thank You for this information.  
I attempted to boil the test down to just essential steps for demonstrating the problem and reducing the possibility for errors.  
So far the issue filed on github has not been rejected or closed.

---

<div class="post-metadata">

### Author: ![TrippleDelta](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/trippledelta/32/6818_2.png) [@TrippleDelta](https://discourse.gohugo.io/u/TrippleDelta)
#### Post date: [September 17, 2018, 8:46pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/15 "2018-09-17T20:46:21Z")

</div>

I’m having the same issue but thought I was the only one so I never mentioned it here.

---

<div class="post-metadata">

### Author: ![Leoj03](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/leoj03/32/6734_2.png) [@Leoj03](https://discourse.gohugo.io/u/Leoj03)
#### Post date: [September 21, 2018, 3:44am UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/16 "2018-09-21T03:44:51Z")

</div>

It could just be your browser cache storing the old version. That happens to me sometimes. If you go to the “quickstart” tutorial and scroll down to the bottom of the page, in the last tip there is a link to a website that explains how to clear your cache in almost any browser.

---

<div class="post-metadata">

### Author: ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)
#### Post date: [September 21, 2018, 4:50am UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/17 "2018-09-21T04:50:06Z")

</div>

@Leoj03

> It could just be your browser cache storing the old version.

The old version of _what_? Their issue is about edits to `config.toml` not being picked up.

---

<div class="post-metadata">

### Author: ![Leoj03](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/leoj03/32/6734_2.png) [@Leoj03](https://discourse.gohugo.io/u/Leoj03)
#### Post date: [September 21, 2018, 12:52pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/18 "2018-09-21T12:52:11Z")

</div>

Oh, my bad. I guess I didn’t read it carefully enough.  
Though, I have had experience with that, too. If you run `hugo server --disableFastRender`, it will watch the config for at least the first edit. I do find that I often have to close the browser window, clear my cache, stop the server, and close the text editor with the config file, then open it all again.

---

<div class="post-metadata">

### Author: ![josh-padnick](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/josh-padnick/32/7629_2.png) [@josh-padnick](https://discourse.gohugo.io/u/josh-padnick)
#### Post date: [January 2, 2019, 9:10pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/19 "2019-01-02T21:10:39Z")

</div>

I followed exactly the [steps outlined by zwbetz](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/5?u=josh-padnick) and also attempted to edit the `config.toml` multiple times, but my instance of hugo also failed to detect any file changes in `config.toml` beyond the very first file change. And I’m on MacOS.

```auto
$ hugo version
Hugo Static Site Generator v0.53/extended darwin/amd64 BuildDate: unknown

```

Would be happy to help maintainers debug this.

---

<div class="post-metadata">

### Author: ![mojoa](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mojoa](https://discourse.gohugo.io/u/mojoa)
#### Post date: [January 3, 2019, 6:13pm UTC](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155/20 "2019-01-03T18:13:26Z")

</div>

I tried to get some interest in this, but apparently it is not a problem for most people. It could be that its not worth the time to pursue, or that most can’t replicate the problem. I don’t know the code logic behind the detection, but hopefully its not symptomatic of a more serious underlying bug.

[Next page](https://discourse.gohugo.io/t/live-reload-not-detecting-changes-after-first-edit/14155.md?page=2)
