Skip to content

Commit ac6f385

Browse files
committed
Restart openresty when conf files are changed
1 parent 07d8f76 commit ac6f385

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

templates/dev.openresty.plist.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,11 @@
3232

3333
<key>StandardOutPath</key>
3434
<string><%= scope.lookupvar "openresty::config::logdir" %>/console.log</string>
35+
36+
<key>WatchPaths</key>
37+
<array>
38+
<string><%= scope.lookupvar "openresty::config::configfile" %></string>
39+
<string><%= scope.lookupvar "openresty::config::sitesdir" %></string>
40+
</array>
3541
</dict>
3642
</plist>

0 commit comments

Comments
 (0)