homepage/deploy.sh
2018-03-28 14:17:22 +02:00

9 lines
466 B
Bash
Executable File

#!/bin/bash
# remove --no-aot, this helped to alleviate error of library, but not necessary in this version?
ng build --prod --env=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