deploying

1.0.3 • Public • Published

Deploying

a simple way to deploy code by ssh command

using

way 1: global env

1、install deploying in global env

$ npm i deploying -g

2、init and modify config deploying.json, using your config

$ deploying init
 
$ cat deploying.json
 
{
    "test"{
        "host""localhost",
        "port": 22,
        "username""root",
        "password""",
        "privateKey""",
        "commands": [
            "pwd"
        ],
        "stdout"true,
        "stderr"true
    }
}

commands is a list about shell command

3、run command to deploy your commands

$ deploying run test
 

way 2: local env

1、local install

$ npm i deploying -D

2、create config file deploying.json and copy this content:

{
    "test": {
        "host": "localhost",
        "port": 22,
        "username": "root",
        "password": "",
        "privateKey": "",
        "commands": [
            "pwd"
        ],
        "stdout": true,
        "stderr": true
    }
}

3、config your package.json

"scripts": {
    "dep": "deploying run pro"
  }

4、run command

$ npm run dep

join it

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    2
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i deploying

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

5.09 kB

Total Files

5

Last publish

Collaborators

  • mouday