|
1 | 1 | # watcherd |
2 | 2 |
|
3 | 3 |  |
4 | | -[](https://github.com/devilbox/watcherd/actions?query=workflow%3Alinting) |
5 | | -[](https://github.com/devilbox/watcherd/actions?query=workflow%3Atest-linux) |
6 | | -[](https://github.com/devilbox/watcherd/actions?query=workflow%3Atest-macos) |
7 | | -[](https://github.com/devilbox/watcherd/actions?query=workflow%3Atest-windows) |
| 4 | +[](https://github.com/devilbox/watcherd/actions/workflows/linting.yml) |
| 5 | +[](https://github.com/devilbox/watcherd/actions/workflows/test-linux.yml) |
| 6 | +[](https://github.com/devilbox/watcherd/actions/workflows/test-macos.yml) |
| 7 | +[](https://github.com/devilbox/watcherd/actions/workflows/test-windows.yml) |
| 8 | +[](https://opensource.org/licenses/MIT) |
8 | 9 |
|
9 | 10 |
|
10 | 11 | **[watcherd](https://github.com/devilbox/watcherd/blob/master/bin/watcherd)** will look for directory changes (added and deleted directories) under the specified path (`-p`) and will execute specified commands or shell scripts (`-a`, `-d`) depending on the event. |
@@ -32,14 +33,14 @@ You can specify the placeholders as many times as you want. See the following ex |
32 | 33 |
|
33 | 34 | ### Examples |
34 | 35 |
|
35 | | -By using **[vhost_gen.py](https://github.com/devilbox/vhost-gen)** (which is capable of creating Nginx or Apache vhost config files for normal vhosts or reverse proxies), the following will be able to create new nginx vhosts on-the-fly, simply by adding or deleting folders in your main www directory. The trigger command will simply force nginx to reload its configuration after directory changes occured. |
| 36 | +By using **[vhost-gen](https://github.com/devilbox/vhost-gen)** (which is capable of creating Nginx or Apache vhost config files for normal vhosts or reverse proxies), the following will be able to create new nginx vhosts on-the-fly, simply by adding or deleting folders in your main www directory. The trigger command will simply force nginx to reload its configuration after directory changes occured. |
36 | 37 |
|
37 | 38 | ```shell |
38 | 39 | # %n will be replaced by watcherd with the new directory name |
39 | 40 | # %p will be replaced by watcherd with the new directory path |
40 | 41 | watcherd -v \ |
41 | 42 | -p /shared/httpd \ |
42 | | - -a "vhost_gen.py -p %p -n %n -s" \ |
| 43 | + -a "vhost-gen -p %p -n %n -s" \ |
43 | 44 | -d "rm /etc/nginx/conf.d/%n.conf" \ |
44 | 45 | -t "nginx -s reload" |
45 | 46 | ``` |
@@ -87,3 +88,9 @@ Misc arguments: |
87 | 88 | --help Show this help screen. |
88 | 89 | --version Show version information. |
89 | 90 | ``` |
| 91 | + |
| 92 | +### License |
| 93 | + |
| 94 | +**[MIT License](LICENSE)** |
| 95 | + |
| 96 | +Copyright (c) 2017 [cytopia](https://github.com/cytopia) |
0 commit comments