ssh-sync
sync git code to remote server using ssh
Dependency
- install python 2.7
- set
python_home
andpython_home/Scripts
toPATH
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 topython_home/Lib/site-packages
Run it
- edit
config.py
- goto
doc/run.cmd
, change the location to yourproject_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