rsynced

1.3.0 • Public • Published

Rsynced

Upload project to one or multiple locations at one time.

Installation

Install via npm:

npm i rsynced

Usage

Create rsync.json file into root of the project:

{
  "destinations": [
    {
      "name": "stage",
      "host": "127.0.0.1",
      "user": "root",
      "chown": ":www-data",
      "dest": "/root/projects/project",
      "source": "build/*",
      "sshKey": "local/key"
    }
  ],
  "exclude": [
    "node_modules",
    "build",
    "tmp",
    "local",
    "rsync.json"
  ]
}
  • name Host name
  • sshKey Path to your private key.
  • root Host root.
  • dest Destination relative to the root.

NOTE. Exclude rsync.json from the sync command on your own.

Install rsynced package. Add npm sync command into your package.json:

{
    "scripts": {
        "sync": "rsynced"
    }
}

Run synchronization:

npm run sync -- stage

License

MIT.

Package Sidebar

Install

npm i rsynced

Weekly Downloads

6

Version

1.3.0

License

MIT

Last publish

Collaborators

  • rumkin