File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff 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
3637SCP 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
You can’t perform that action at this time.
0 commit comments