Skip to content

Commit e7a9699

Browse files
committed
add uploadMirrors example
1 parent 1896308 commit e7a9699

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Create file `.remote-sync.json` in your project root with these settings:
3232
* `target` — Target directory on remote host
3333
* `ignore` — Array of [minimatch](https://github.com/isaacs/minimatch) patterns of files to ignore
3434
* `uploadOnSave` — Whether or not to upload the current file when saved, default: false
35+
* `uploadMirrors` — transport mirror config array when upload
3536

3637
SCP example:
3738
```json
@@ -80,6 +81,49 @@ FTP example:
8081
}
8182
```
8283

84+
Upload mirrors example:
85+
```json
86+
{
87+
"transport": "scp",
88+
"hostname": "10.10.10.10",
89+
"port": 22,
90+
"username": "vagrant",
91+
"password": "vagrant",
92+
"keyfile": "/home/vagrant/.ssh/aws.pem",
93+
"passphrase": "your_passphrase",
94+
"target": "/home/vagrant/dirname/subdirname",
95+
"ignore": [
96+
".git/**"
97+
],
98+
"uploadMirrors":[
99+
{
100+
"transport": "scp",
101+
"hostname": "10.10.10.10",
102+
"port": 22,
103+
"username": "vagrant",
104+
"password": "vagrant",
105+
"keyfile": "/home/vagrant/.ssh/aws.pem",
106+
"passphrase": "your_passphrase",
107+
"target": "/home/vagrant/dirname/subdirname_one",
108+
"ignore": [
109+
".git/**"
110+
],
111+
},
112+
{
113+
"transport": "ftp",
114+
"hostname": "10.10.10.10",
115+
"port": 21,
116+
"username": "vagrant",
117+
"password": "vagrant",
118+
"target": "/home/vagrant/dirname/subdirname_two",
119+
"ignore": [
120+
".git/**"
121+
]
122+
}
123+
]
124+
}
125+
```
126+
83127
## Usage example
84128

85129
### Existing project

0 commit comments

Comments
 (0)