This app is used to watch a folder for changes and update the target folder. I built this app so that I could do development on my local environment and sync that code to a server over a network share.
git clone https://github.com/clarmond/codesync
cd codesync
npm install
npm start source_folder target_folder
For example:
npm start C:\Users\dillinger\mcp\src \\encom\mcp\src
npm start /Users/abradley/tron /Volumes/tron
You can create a list of files to be ignored by CodeSync by creating a .csignore file. (Dot files are excluded automatically.) This file follows the .gitignore spec. For example:
node_modules/
README.md
This is a one-way sync. Changes made on the target folder will not be reflected back on the source folder.
It's recommended that you create a bat file or shell script (depending on your environment) to run the command for you. For example:
#!/bin/bash
cd ~/codesync
npm start ~/my-code /Volumes/dev-area