From c8efe158609db87aa8914914e5125c2258796846 Mon Sep 17 00:00:00 2001 From: Joachim Nielandt Date: Wed, 28 Mar 2018 14:17:22 +0200 Subject: [PATCH] Ready to deploy, first test is online now. --- deploy.sh | 7 +++---- .../components/languagetoggle/languagetoggle.component.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/deploy.sh b/deploy.sh index 0f56cbc..2464c0f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,8 +1,7 @@ #!/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/ +# 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 diff --git a/src/app/components/languagetoggle/languagetoggle.component.ts b/src/app/components/languagetoggle/languagetoggle.component.ts index 0b18abd..e19895d 100644 --- a/src/app/components/languagetoggle/languagetoggle.component.ts +++ b/src/app/components/languagetoggle/languagetoggle.component.ts @@ -19,7 +19,7 @@ export class LanguagetoggleComponent implements OnInit { /** * if this is set to true, the component will be visible */ - private show = false; + show = false; constructor(private router: Router, private route: ActivatedRoute, private stateService: StateService) { }