README
pon-task-deploy
Pon task to deploy Node.js application via SSH
Installation
$ npm install pon-task-deploy --save
Usage
'use strict'
const pon = require('pon')
const hcDeployTask = require('pon-task-deploy')
async function tryExample () {
let run = pon({
myTask01: hcDeployTask({
host: '192.168.1.20',
username: 'root',
privateKey: '/tmp/deploy_rsa'
})
})
run('myTask01')
}
tryExample()
Signatures
define(options) -> function
Define task
Param | type | Description |
---|---|---|
options | Object | Optional settings |
options.host | string | SSH Host IP adress |
options.username | string | SSH user name |
options.privateKey | string | Private key path |
options.commands | srting[] | Deploy commands |
License
This software is released under the Apache-2.0 License.