diff --git a/explore/deploy/prepareDeploy.sh b/explore/deploy/prepareDeploy.sh index cfa3ba99..f04f8d10 100755 --- a/explore/deploy/prepareDeploy.sh +++ b/explore/deploy/prepareDeploy.sh @@ -1,28 +1,32 @@ #ATTENTION -#DON'T run it in svn folder - it REMOVES files -#Copy project in another file "deploy-folder" -#cd "deploy-folder" -#run the script +#DON'T run this script in svn folder - it REMOVES files +#Copy project in another location "deploy-folder" +# go to "deploy-folder/deploy" -## cp the file according to the deploy environment +#1. uncomment the proper property file +#2. uncomment the rest commands +#3.run the script +#4.Check the Deploy instructions +#Property files: +# uncommect ONE of the following according to the deploy environment!!! # cp production-properties.json ../src/assets/env-properties.json; # cp test-properties.json ../src/assets/env-properties.json; # cp beta-properties.json ../src/assets/env-properties.json; ## uncommect from here--> -# echo -n 'Check that you have the correct properties file'; -# echo -n "Press key:"; +# printf '\nCheck that you have the correct properties file\n'; +# printf -n "\nPress key:"; # read -n1 ans # pico ../src/assets/env-properties.json; -# echo 'For Production keep meta for bots'; -# echo -n 'Check index.html: For test keep meta for noindex, for production remove noindex and keep meta for Search engines verification'; -# echo -n "Press key:"; +# printf '\nFor Production keep meta for bots'; +# printf '\n\nCheck index.html:\n For test keep meta for noindex, for production remove noindex and keep meta for Search engines verification'; +# printf "\nPress key:"; # read -n1 ans -# echo -n "Pressed"; +# printf "\nPressed"; # pico ../src/index.html; -# echo -n 'Check Robots.txt: For test and beta add "Diasallow /", for production remove it!'; -# echo -n "Press key:"; +# printf '\n\nCheck Robots.txt: \n For test and beta add "Disallow /" and comment all sitemaps, for production remove it!'; +# printf "\nPress key:"; # read -n1 ans # echo -n "Pressed"; # pico ../src/robots.txt; @@ -36,9 +40,11 @@ #Deploy instructions! #copy "deploy-folder" in beta.explore.openaire.eu, test.openaire.eu or explore.openaire.eu depending which in environment want to deploy and properties selected -#copies of previous deployments exist in "/home/argiro.kokogiannaki/deployments-folder/dashboardYYYY-MM-DD" +#copies of previous deployments exist in "/home/argiro.kokogiannaki/uoa-portal/environment.exlore-YYYY-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/deployments-folder/* ." -#restart portal "pm2 restart openaire" +#become nodejs user be able to copy the files: "sudo su nodejs -s /bin/bash" +#check what is running "pm2 list" +#portal files exist in "/srv/www/portal" +#copy deployment files to the portal folder cp -r /home/argiro.kokogiannaki/uoa-portal/environment.exlore-YYYY-MM-DD/* /srv/www/portal" +#restart portal to get the changes "pm2 restart openaire" +#for test "pm2 restart test-explore" diff --git a/explore/deploy/production-properties.json b/explore/deploy/production-properties.json index 6cec2830..6bf0a3c6 100644 --- a/explore/deploy/production-properties.json +++ b/explore/deploy/production-properties.json @@ -26,7 +26,7 @@ "h2020Guidlines" : "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020", "ercGuidlines" : "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf", "helpdesk" : "https://www.openaire.eu/support/helpdesk", - "utilsService" : "https://explore.openaire.eu", + "utilsService" : "https://explore.openaire.eu/utils-service", "vocabulariesAPI" :"https://services.openaire.eu/provision/mvc/vocabularies/", diff --git a/explore/deploy/test-properties.json b/explore/deploy/test-properties.json index dbd050d1..eab42e37 100644 --- a/explore/deploy/test-properties.json +++ b/explore/deploy/test-properties.json @@ -30,7 +30,7 @@ "h2020Guidlines" : "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020", "ercGuidlines" : "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf", "helpdesk" : "https://www.openaire.eu/support/helpdesk", - "uploadService" : "https://explore.openaire.eu/upload/", + "uploadService" : "https://explore.openaire.eu/utils-service", "vocabulariesAPI" :"https://services.openaire.eu/provision/mvc/vocabularies/", diff --git a/explore/src/assets/env-properties.json b/explore/src/assets/env-properties.json index ea76c554..59ca0aec 100644 --- a/explore/src/assets/env-properties.json +++ b/explore/src/assets/env-properties.json @@ -42,7 +42,7 @@ "cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=", - "adminToolsAPIURL" :"http://scoobydoo.di.uoa.gr:8080/uoa-admin-tools/", + "adminToolsAPIURL" :"http://mpagasas.di.uoa.gr:8080/uoa-admin-tools/", "adminToolsCommunity" :"openaire", "datasourcesAPI": "https://beta.services.openaire.eu/openaire/ds/search/",