@@ -50,12 +50,24 @@ err = http.ListenAndServe(":3000", web.ErrorChecker(m))
50
50
...
51
51
```
52
52
53
+ ## Using livereload.js
54
+
55
+ [ What is LiveReload?] ( https://github.com/livereload/livereload-js#what-is-livereload )
56
+
57
+ This script is meant to be included into the web pages you want to monitor, like this:
58
+
59
+ ``` js
60
+ ...
61
+ < script src= " http://localhost:35729/livereload.js" >< / script>
62
+ ...
63
+ ```
64
+
53
65
## Configuration Settings
54
66
55
67
``` yml
56
68
# The root of your application relative to your configuration file.
57
69
app_root : .
58
- # List of folders you don't want to watch. The more folders you ignore, the
70
+ # List of folders you don't want to watch. The more folders you ignore, the
59
71
# faster things will be.
60
72
ignored_folders :
61
73
- vendor
@@ -70,7 +82,7 @@ build_path: /tmp
70
82
# unnecessary builds, a delay is used to ignore extra events.
71
83
build_delay : 200ms
72
84
# If you have a specific sub-directory of your project you want to build.
73
- build_target_path : " ./cmd/cli"
85
+ build_target_path : " ./cmd/cli"
74
86
# What you would like to name the built binary.
75
87
binary_name : refresh-build
76
88
# Extra command line flags you want passed to the built binary when running it.
@@ -79,4 +91,14 @@ command_flags: ["--env", "development"]
79
91
command_env : ["PORT=1234"]
80
92
# If you want colors to be used when printing out log messages.
81
93
enable_colors : true
94
+ # If you want livereload websocket server to be used.
95
+ livereload :
96
+ # Enable livereload
97
+ enable : false
98
+ # server port
99
+ port : 35729
100
+ # Run commands when you change in included_folders files.
101
+ tasks : []
102
+ # List of folders you want to watch.
103
+ included_folders : []
82
104
` ` `
0 commit comments