From 54fc8a2180f778f68360881f7108c5e6f4d84b11 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Tue, 3 Jul 2018 09:17:33 +0000 Subject: [PATCH] Deploy script - Detailed information git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@52656 d315682c-612b-4755-9ff5-7f18f6832af3 --- portal-4cli-lib/prepareDeploy.sh | 31 ++++++++++++++----- .../src/assets/env-properties.json | 2 +- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/portal-4cli-lib/prepareDeploy.sh b/portal-4cli-lib/prepareDeploy.sh index 0e3669bc..5aee01b9 100755 --- a/portal-4cli-lib/prepareDeploy.sh +++ b/portal-4cli-lib/prepareDeploy.sh @@ -1,7 +1,24 @@ -cp explore-production-properties.json src/assets/env-properties.json; -rm -rf src/assets/common-assets/.svn/; -rm -rf src/app/openaireLibrary/.svn/; -npm run build:dynamic; -rm -rf src node_modules .idea/ connect-production-properties.json installOpenaireLib.sh; -echo 'Ready!'; -echo 'Now copy dist to the server!' +#ATTENTION +#DON'T run it in svn folder - it REMOVES files +#Copy project in another file "deploy-folder" +#cd "deploy-folder" +#run the script + +## uncommect from here--> +# cp explore-production-properties.json src/assets/env-properties.json; +# rm -rf src/assets/common-assets/.svn/; +# rm -rf src/app/openaireLibrary/.svn/; +# pico src/app/openaireLibrary/utils/properties/environment-specific.service.ts; +# npm run build:dynamic; +# rm -rf src node_modules .idea/ connect-production-properties.json installOpenaireLib.sh; +# echo 'Ready!'; +# echo 'Now copy to the server!' +##<-- to here + +#copy "deploy-folder" in demo.openaire.eu +#coppies of previous deployments exist in "/home/argiro.kokogiannaki/uoa-portal/openaireYYYY-MM-DD" +#run "npm i" +#become nodejs user: "sudo su nodejs -s /bin/bash" +#go to "cd /srv/www/portal" +#cp files from "cp -r HOME_PATH/deploy-folder/* ." +#restart portal "pm2 restart openaire" diff --git a/portal-4cli-lib/src/assets/env-properties.json b/portal-4cli-lib/src/assets/env-properties.json index 6220f952..5d661072 100644 --- a/portal-4cli-lib/src/assets/env-properties.json +++ b/portal-4cli-lib/src/assets/env-properties.json @@ -34,7 +34,7 @@ "piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=", "piwikSiteId" : "6", - "loginUrl" :"http://scoobydoo.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/openid_connect_login", + "loginUrl" :"http://mpagasas.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/openid_connect_login", "logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",