pon-task-deploy

3.0.4 • Public • Published

pon-task-deploy

Build Status JS Standard

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.

Links

/pon-task-deploy/

    Package Sidebar

    Install

    npm i pon-task-deploy

    Weekly Downloads

    0

    Version

    3.0.4

    License

    Apache-2.0

    Unpacked Size

    22.5 kB

    Total Files

    24

    Last publish

    Collaborators

    • realglobe