Giter Club home page Giter Club logo

code-syncer's Introduction

Code Syncer

Code syncer is designed to allow users to edit code in a repo on their local environment and automatically sync that code to a vm where the code can be run remotely. This is nice for vms that are low on memory so editing code directly on the VM sucks and you can't easily mount a directory to the VM.

Instructions

Run install.sh to setup code-syncer locally

This will install some depedencies and place the scripts in a place where they can be executed anywhere.

Running

watch-sync

watch-sync [local_repo] [remote_location] [remote_repo]

watch-sync will watch the local_repo directory and push changes to the remote directory. It will delete all files that don't exist locally unless those files are listed in a .gitignore file in the remote repo. watch-sync runs sync-code each time a file system item changes locally.

local_repo is the location you want to watch and rsync from. This would be the editing environment. For example, ~/lucid/main.

remote_location is the username/server address for the remote repo. For example, [email protected] or andy.office.lucidchart.com

remote_repo is the lcoation you want to sync to. This would be the environment running code. For example, /home/andy/lucid/main

sync-code

sync-code [local_repo] [remote_location] [remote_repo]

Run to sync code from local repo to remote. See watch-sync for more details.

code-syncer's People

Contributors

andrewmh avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.