1.3.0 • Published 10 years ago

rsynced v1.3.0

Weekly downloads
11
License
MIT
Repository
github
Last release
10 years ago

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.

1.3.0

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.1.4

10 years ago

1.0.4

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago