Deploy Angular 2 app by simply rsync (ing) files to a remote directory using project local configuration file(s).
Support multiple environments/servers.
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
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)
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