Giter VIP home page Giter VIP logo

codest's Introduction

codest

Coding at local like you do it on remote.

Features

  • Automatically: monitor changes.
  • Instantly: Sync just after change.
  • Incrementally: only sync changed parts.
  • Efficiently: aggregate all changes within a specifield interval and respect your git-ignore rules, only sync needed files.

Installation

Please make sure these programs installed and available in your PATH:

  • rsync >= 3.1.0
  • git >= 2.3.0
$ pip install codest

Usage

Monitor changes and sync diff:

$ codest path/to/local/foo [user[:password]@]host:/path/on/remote/bar

Then, all the code in /path/on/remote/bar on the remote host will keep syncing with local foo directory.

If you just want to sync your code manually, you can put a -s argument after the command:

$ codest -s path/to/local/foo [user[:password]@]host:/path/on/remote/bar

This will cause a sync, and codest will exit.

And you can specifiy sync interval by setting -i option:

$ codest -i 2 path/to/local/foo [user[:password]@]host:/path/on/remote/bar

Then, codest will sync to remote every 2 seconds if changes happened.

To show help message:

$ codest -h

codest's People

Contributors

psjay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

codest's Issues

More Pythonic

这里为什么不直接写成下面这样呢?

@staticmethod
def validate_path(path):
    return os.path.exists(os.path.join(path, '.git'))

mac 上 rsync 版本问题

此项目要求 rsync >= 3.1.0,但是 mac 自带的是 2.6.9,而且无法删除

我们用 homebrew 安装了新版之后,直接通过 alias 来覆盖

在 bashrc 或者 zshrc 里面加入:

alias rsync="/usr/local/Cellar/rsync/3.1.3_1/bin/rsync"

路径大家根据自己的版本来配置即可

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.