rsyncmon
v1.0.2
Published
watches your directory for changes and automatically rsyncs to destination
Downloads
3
Maintainers
Readme
rsyncmon
watches your directory for changes and automatically rsyncs to destination
Rationale
I ran into situations where I need to test my code in test environments separate from my development environment. Having to constantly deploy to test environment is very tedious. This tool will automatically sync from your source directory to the destination directory whenever changes are detected, so it's always ready for you.
Note: it relies on shell rsync command, so would work on Linux and Mac, but may not work on Windows without rsync installed
What it does
- it watches your source directory
- whenever you modify your code, it rsyncs the changes over to destination
- you can run test in the destination right away
How to Use
- Install globally with
npm install -g rsyncmon
- cd to the directory you want to watch
- run
rsyncmon init
to create the samplersyncmon.json
file - modify the
rsyncmon.json
file with proper information - run
rsyncmon once
to run the sync once, if desired - run
rsyncmon watch
to start the automatic sync process
Features
- Uses chokidar, which should handle most OS specific idiosyncrasies