Skip to content

Commit

Permalink
upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyann committed Jul 16, 2017
1 parent 2a20200 commit bc5e7aa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
29 changes: 21 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@ client.sftp({
}
]
})
.upload()
.exec()
```

or use ftp

```js
client.ftp({
...
})
.exec()
```

#### options:
Expand Down Expand Up @@ -66,13 +75,17 @@ rules | array of rule | rule use to speicify different place for each file. each
## Command Line Interface(CLI)

```
./bin/deploy --server user:pwd@server_address:port --ignore **/*.map ./dist /data1/htdocs/testapp
$ ./bin/deploy-sftp --server user:pwd@server_address:port --ignore **/*.map ./dist /data1/htdocs/testapp
```

```
$ ./bin/deploy-ftp ...
```

#### cli options:
```
Usage: deploy [options] [workspace] [deployTo]
Usage: deploy-sftp [options] [workspace] [deployTo]
Options:
Expand All @@ -86,11 +99,11 @@ rules | array of rule | rule use to speicify different place for each file. each
Examples:
// use configuration from a file
$ deploy --config deploy.js
$ deploy-sftp --config deploy.js
// deploy files in ./dist to /data1/htdocs/testapp on 10.13.1.2
$ deploy -s user:[email protected]:22 --i *.map ./dist /data1/htdocs/testapp
$ deploy-sftp -s user:[email protected]:22 --i *.map ./dist /data1/htdocs/testapp
version: 2.1.2
version: 3.1.0
```

#### using config file
Expand All @@ -110,13 +123,13 @@ module.exports = {
Runing directly without any arg.

```
./bin/deploy
./bin/deploy-sftp
```

If you prefer to place the configuration file in another place, you can use `-c, --config <path>` option like this:

```
./bin/deploy --config ./config/your_conf.js
./bin/deploy-sftp --config ./config/your_conf.js
```

## Used with plugins
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ client.sftp({
}
]
})
.upload()
.exec()


2 changes: 1 addition & 1 deletion plugins/webpack-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DeployPlugin.prototype.apply = function(compiler) {
stats: {}
}
})
self.client.upload(files)
self.client.exec(files)
})
}

Expand Down

0 comments on commit bc5e7aa

Please sign in to comment.