0.1.8 • Published 3 years ago

@zaaack/scp-sync v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@zaaack/scp-sync

Sync project files to remote server via scp.

Features

  • sync file when file changed
  • start command after watching
  • customize watching directory and remote directory

Usage

yarn global add @zaaack/scp-sync
scp-sync init # this generate config file "scpSync.json" in current directory.

then edit scpSync.json,

{
  "host": "yourName@yourHost",
  "startCmd": "start command to run remotely after watching",
  "remoteFolder": "yourRemoteFolderPath",
  "localFolder": "yourLocalFolderPath",
  "port": 0,
  "sshParams": ["extra", "ssh", "params", "when", "running", "startCmd"],
  "scpParams": ["extra", "scp", "params", "when", "syncing", "files"]
}

start watching

scp-sync start
# scp-sync watch # watch and sync files
# scp-sync exec # exec start command
0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago