Skip to content

Commit

Permalink
Fix gohugoio#593 problem with hugo -w
Browse files Browse the repository at this point in the history
  • Loading branch information
k4rtik authored and spf13 committed Nov 2, 2014
1 parent c1942e9 commit f3e9cbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/hugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ func NewWatcher(port int) error {
}

if static_changed {
fmt.Print("Static file changed, syncing\n\n")
jww.FEEDBACK.Println("Static file changed, syncing\n")
utils.StopOnErr(copyStatic(), fmt.Sprintf("Error copying static files to %s", helpers.AbsPathify(viper.GetString("PublishDir"))))

if !viper.GetBool("DisableLiveReload") {
if !BuildWatch && !viper.GetBool("DisableLiveReload") {
// Will block forever trying to write to a channel that nobody is reading if livereload isn't initalized

// force refresh when more than one file
Expand All @@ -376,7 +376,7 @@ func NewWatcher(port int) error {
fmt.Println(time.Now().Format(layout))
utils.StopOnErr(buildSite(true))

if !viper.GetBool("DisableLiveReload") {
if !BuildWatch && !viper.GetBool("DisableLiveReload") {
// Will block forever trying to write to a channel that nobody is reading if livereload isn't initalized
livereload.ForceRefresh()
}
Expand Down

0 comments on commit f3e9cbc

Please sign in to comment.