Ready to deploy, first test is online now.

This commit is contained in:
Joachim Nielandt 2018-03-28 14:17:22 +02:00
parent fdc08da100
commit c8efe15860
2 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,7 @@
#!/bin/bash #!/bin/bash
cd .. # remove --no-aot, this helped to alleviate error of library, but not necessary in this version?
ng build --prod --no-aot --env=prod ng build --prod --env=prod
# deploy the disbiome website to the disbiome webservice rsync -az -e ssh --progress --exclude dist/.git --delete dist/* root@nielandtnginx:/www/
rsync -az -e ssh --progress --exclude dist/.git --delete dist/* root@disbiomewebserver:/var/www/html/
# overwrite the local config with the remote config # 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 # ssh disbiomewebserver mv /var/www/html/app/config/appconfig.remote.ts /var/www/html/app/config/appconfig.ts
# recompile everything # recompile everything

View File

@ -19,7 +19,7 @@ export class LanguagetoggleComponent implements OnInit {
/** /**
* if this is set to true, the component will be visible * 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) { constructor(private router: Router, private route: ActivatedRoute, private stateService: StateService) {
} }