0.0.16 • Published 9 years ago

gfswatcher v0.0.16

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

Build Status: Linux

gfswatcher

Directory watcher module

Command line utility for this module: gfswatcher-cli

Config file

Simple example

{
    "interval":1000,
    "sync": [
        {
            "source":"/home/user/path/project1",
            "cmd":"echo {{event.type}} -- {{event.path}}",
            "initCmd":"echo This shell command is executed only once for the sync rule of source: {{source}}",
            "grouped":false
        }
    ]
}

A more complex configuration for Docker environments. Many local sources to many remote docker containers:

{
    "interval":1000,
    "sync": [
        {
            "source":"/home/user/path/project1",
            "cmd":"rsync -e \"docker exec -i\"  {{opts.rsync}} {{source}}/. CONTAINER1:/home/sites/dir; rsync -e \"docker exec -i\" {{opts.rsync}} {{source}}/. CONTAINER2:/home/sites/dir",
            "opts":{
              "rsync":"--blocking-io -avz --delete --no-perms --no-owner --no-group --exclude-from=\"{{source}}/.dockerignore\" --exclude-from=\"{{source}}/.gitignore\" --exclude=\"{{source}}/web/images/upload\" --checksum --no-times --itemize-changes"
            },
            "grouped":true
        },
        {
            "source":"/home/user/path/project2",
            "cmd":"rsync -e \"docker exec -i\" {{opts.rsync}} {{source}}/. CONTAINER1:/home/sites/dir/vendor/brand/project; rsync -e \"docker exec -i\" {{opts.rsync}} {{source}}/. CONTAINER2:/home/sites/dir/vendor/brand/project",
            "opts":{
              "rsync":"--blocking-io -avz --delete --no-perms --no-owner --no-group --exclude-from=\"{{source}}/.dockerignore\" --exclude-from=\"{{source}}/.gitignore\" --exclude=\"{{source}}/web/images/upload\" --checksum --no-times --itemize-changes"
            },
            "grouped":true
        }
    ]
}
0.0.16

9 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago