Added the deploy script, still need to change it.

This commit is contained in:
Joachim Nielandt 2018-03-28 08:20:43 +02:00
parent 587338d1eb
commit 3ba2c0941e

9
deploy.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
cd ..
ng build --prod --no-aot --env=prod
# deploy the disbiome website to the disbiome webservice
rsync -az -e ssh --progress --exclude dist/.git --delete dist/* root@disbiomewebserver:/var/www/html/
# 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