1.0.1 • Published 7 years ago

n-deploy v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

#n-deploy

This tool allows you to scp -r /path/to/local/folder user@host.com:/path/to/destination onto multiple targets.

Installation

npm install -g n-deploy

Usage / Config

n-deploy --sample
[+] Starting n-deploy v1
[+] Printing sample config ... copy & paste into n-deploy.json
{
  "config-version": "release",
  "config-data": {
    "targets": [
      {
        "user": "userA",
        "host": "example.com",
        "destination": "folder_A",
        "source": "/my/local/path/to/folderA"
      },
      {
        "user": "userB",
        "host": "example.org",
        "destination": "folder_B",
        "source": "/my/local/path/to/folderB"
      }
    ]
  }
}

# Modify and put this JSON inside n-deploy.json file and place this into your project's root folder.  

Usage / Deploy

n-deploy --run
[+] Starting n-deploy v1
[+] Configuration has been read.
[+] Validating deploy targets.
[+] Deploy for target <userA@example.com> started.
[+] Deploy for target <userB@example.org> started.
{
        "user": "userA",
        "host": "example.com",
        "destination": "folder_A",
        "source": "/my/local/path/to/folderA",
        "resultOfDeploy": "Succeed"
}
{
        "user": "userB",
        "host": "example.org",
        "destination": "folder_B",
        "source": "/my/local/path/to/folderB",
        "resultOfDeploy": "Succeed"
}

License MIT

Author

Alexis Charytonow, @lintuxt, 2015-2017.