Skip to content

Deploy an Angular2 app. Just rsync files to a remote directory, nothing fancier !

Notifications You must be signed in to change notification settings

360medics/ng-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

360medical deployment script

Deploy Angular 2 app by simply rsync (ing) files to a remote directory using project local configuration file(s).

Support multiple environments/servers.

Installation

cd /somewhere/convenient
wget https://github.com/adadgio/ng-deploy/archive/1.2.zip && unzip 1.2.zip && rm 1.2.zip
chmod +x deploy.sh
sudo ln -s /somewhere/convenient/deploy.sh /usr/local/bin/ngdeploy

Prerequisites

Have the following files and directory in the local angular 2 project.

deploy/
    include.txt (optional)
    exclude.txt
    conf-staging.cnf
    conf-prod.cnf (optional)

Commands

Deploy to a new version or override existing version.

ngdeploy --env=staging --version=2.2.1
# ngdeploy --e=staging -v=2.2.1

Rollback to a specific version.

ngdeploy --env=staging --version=2.2.0

Read current remotely deployed live version vs local version.

ngdeploy --env=staging --status

About

Deploy an Angular2 app. Just rsync files to a remote directory, nothing fancier !

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages