scp-deploy-plugin

0.0.6 • Public • Published

Overview

deploy by scp command

After executing the 'npm run build' command, automatically deploy.

Installation

npm i scp-deploy-plugin

Basic Usage

new ScpDeployPlugin({
  host: '127.0.0.1',
  port: 22,
  username: 'root',
  privateKey: '/User/xxx/.ssh/id_rsa', // absolute path
  projectPath: '/app/web/projectName' // contains index.html
})

new ScpDeployPlugin({
  host: '127.0.0.1',
  port: 22, 
  username: 'root',
  password: '***', // you need enter password again  when execute the scp command
  projectPath: '/app/web/projectName' // contains index.html
})

Package Sidebar

Install

npm i scp-deploy-plugin

Weekly Downloads

1

Version

0.0.6

License

ISC

Unpacked Size

6.71 kB

Total Files

3

Last publish

Collaborators

  • xingzhiy