#!/bin/bash
# remove --no-aot, this helped to alleviate error of library, but not necessary in this version?
# ng build --prod --env=prod
ng build --prod 
rsync -az -e ssh --progress --exclude dist/.git --delete dist/* root@nielandtnginx:/www/
# overwrite the local config with the remote config
# ssh disbiomewebserver mv /var/www/html/app/config/appconfig.remote.ts /var/www/html/app/config/appconfig.ts
# recompile everything
# ssh disbiomewebserver 'cd /var/www/html ; npm run tsc
