[Explore|Trunk]
Deploy: update properties and script instructions git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@56839 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
15238c838b
commit
b6ed2eb3bf
|
@ -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"
|
||||
|
|
|
@ -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/",
|
||||
|
||||
|
|
|
@ -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/",
|
||||
|
||||
|
|
|
@ -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/",
|
||||
|
|
Loading…
Reference in New Issue