Skip to content

clarmond/codesync

Repository files navigation

CodeSync

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.

Prerequisites

Getting Started

git clone https://github.com/clarmond/codesync
cd codesync
npm install

How to Use

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

Ignore Files

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

Notes

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

About

Tool for synchronizing code from a local dev environment to a server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors