0.5.3 • Published 6 years ago

easy-sync2 v0.5.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

easy-sync

This tool is used to sync your dev code to remote test server.

easy-sync

Why easy-sync?

I'm a web developer. Sometimes wrote some php scripts or backend templates. These scripts have no need to compile, all i have to do is, copy to the test server, refresh the webpage or use curl to test the interface.

Below is how i do to copy the files to the remote test server:

scp -p 6666 test.php root@192.168.45.1:/var/www/app/
# then enter the remote server password

The copy step will be verbose when you edit very often. Type the scp command, then input the server password. Sometimes unacceptable!

What if i edited a file, some tool will help me copy to the test server without password? Sounds nice!

How to use?

rquirements

  • Node^6.9
  • sshpass

install the tool

npm install -g easy-sync2

config your sessions /root/.easy-sync.rc

dev:
  user: root
  host: 192.168.0.2
  port: 61209
  password: xxxx
  local-path: ~/app
  remote-path: /var/www/app
test:
.
.

watch and sync your code

easy-sync -s -n dev  # sync code

Examples

init remote server

easy-sync -in dev

check easy-sync version

easy-sync -V

watch and sync your code

easy-sync -sn dev

check sesion conf

easy-snc -l [sessionName]

get sshPass login cmd

easy-sync -S -name dev

# output : sshpass -p password ssh -p port  user@host
0.5.3

6 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.0.1

7 years ago