From 3ba2c0941ec287b91ec2107fe35d27d1b606629a Mon Sep 17 00:00:00 2001 From: Joachim Nielandt Date: Wed, 28 Mar 2018 08:20:43 +0200 Subject: [PATCH] Added the deploy script, still need to change it. --- deploy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..0f56cbc --- /dev/null +++ b/deploy.sh @@ -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