Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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

Install

npm i deploying

DownloadsWeekly Downloads

7

Version

1.0.3

License

ISC

Unpacked Size

5.09 kB

Total Files

5

Last publish

Collaborators

  • avatar