https://github.com/rumkin/rsynced
Rsync your node.js project with VM, staging and production.
https://github.com/rumkin/rsynced
Last synced: 3 months ago
JSON representation
Rsync your node.js project with VM, staging and production.
- Host: GitHub
- URL: https://github.com/rumkin/rsynced
- Owner: rumkin
- License: other
- Created: 2016-07-06T15:10:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-15T16:40:37.000Z (over 9 years ago)
- Last Synced: 2025-10-11T07:34:16.486Z (8 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Rsynced
Upload project to one or multiple locations at one time.
## Installation
Install via npm:
```shell
npm i rsynced
```
## Usage
Create `rsync.json` file into root of the project:
```json
{
"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`:
```json
{
"scripts": {
"sync": "rsynced"
}
}
```
Run synchronization:
```
npm run sync -- stage
```
## License
MIT.