Coder Social home page Coder Social logo

easy-sync's Introduction

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 [email protected]:/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

easy-sync's People

Contributors

flyyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

merfais

easy-sync's Issues

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.