ngx-ssh-deploy
Deploy Angular project using SSH.
Last updated 2 months ago by dkhang97 .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install ngx-ssh-deploy 
SYNC missed versions from official npm registry.

ngx-ssh-deploy

version npm

Installation

npm i -D ngx-ssh-deploy

or globally install the package

npm i -g ngx-ssh-deploy

Usage

Initialize configuration

ngx-ssh-deploy init

Or init with host, user and pem file and deployment path

ngx-ssh-deploy init ec2-user@ec2-127-0-0-1.example.compute.amazonaws.com -K ./certs/example.com/example.pem -P /home/ec2-user/angular-app

Deploy the app

ngx-ssh-deploy deploy

Generate web server configuration

for Apache

ngx-ssh-deploy config apache

or nginx

ngx-ssh-deploy config nginx

CLI

ngx-ssh-deploy [command]

Commands:
  ngx-ssh-deploy init [endpoint]                               Init ngx-ssh-deploy
  ngx-ssh-deploy config <serverName> [environment]             Generate server configuration
  ngx-ssh-deploy deploy [environment]                          Deploy Angular to server using SSH

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Example Configuration (ngx-ssh-deploy.json)

{
  "$schema": "./node_modules/ngx-ssh-deploy/ngx-ssh-deploy.schema.json",
  "environments": {
    "angular-app": {
      "endpoint": {
        "host": "ec2-127-0-0-1.example.compute.amazonaws.com",
        "user": "ec2-user",
        "pemFile": "./certs/example.com/example.pem"
      },
      "ssh": {
        "path": "/home/ec2-user/angular-app"
      },
      "nodeOptions": {
        "max_old_space_size": 8096
      },
      "targetUrl": "https://example.com/"
    }
  },
  "defaultEnvironment": "angular-app"
}

Current Tags

  • 1.5.0                                ...           latest (2 months ago)

10 Versions

  • 1.5.0                                ...           2 months ago
  • 1.4.0                                ...           6 months ago
  • 1.3.2                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (13)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |