pinkdawn / ssh-sync

sync git code to remote server using ssh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ssh-sync

sync git code to remote server using ssh

Dependency

  • install python 2.7
  • set python_home and python_home/Scripts to PATH
  • python doc/ez_setup.py
  • easy_install paramiko
  • easy_install pycrypto
  • or goto: doc/pycrypto-2.3.1.win7x64-py2.7x64.7z or find a win32 version yourself, uncompress it, copy to python_home/Lib/site-packages

Run it

  • edit config.py
  • goto doc/run.cmd, change the location to your project_home
  • run run.cmd to sync code files to remote server
  • run run.cmd -i to incremental sync code (only files changed from last sync will be synced)
  • run run.cmd -r to delete the test branch, and pull the branch from git remote, and track the new branch. (this is useful when local test over, create & push to new branch). This will also clear increment cache.

To Do

  • now only support using private key to ssh login, can easily modified to use username & password

About

sync git code to remote server using ssh

License:MIT License


Languages

Language:Python 100.0%