[Connect|Trunk]
Deploy: add production properties update script for production Piwik: add productions site ids for the communities create a method to get piwik id based on community and environment git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@56822 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
687385f5b4
commit
a76d2766c7
|
@ -53,6 +53,7 @@
|
|||
|
||||
"cacheUrl" :"https://demo.openaire.eu/cache/get?url=",
|
||||
|
||||
|
||||
"adminToolsAPIURL" :"https://beta.services.openaire.eu/uoa-admin-tools",
|
||||
|
||||
"adminToolsCommunity" :"connect",
|
||||
|
|
|
@ -1,13 +1,30 @@
|
|||
#ATTENTION
|
||||
#DON'T run it in svn folder - it REMOVES files
|
||||
#Copy project in another file "deploy-folder"
|
||||
#cd "deploy-folder/deploy"
|
||||
#Copy project in another location eg "deploy-folder"
|
||||
#go to "deploy-folder/deploy"
|
||||
#uncomment the proper commands
|
||||
#run the script
|
||||
|
||||
## cp the file according to the deploy environment
|
||||
# cp theproperties file according to the deploy environment!!!
|
||||
## uncommect one of the following -->
|
||||
# cp beta-properties.json ../src/assets/env-properties.json;
|
||||
# cp production-properties.json ../src/assets/env-properties.json;
|
||||
|
||||
## uncommect from here-->
|
||||
# echo -n 'Check that you have the correct properties file';
|
||||
# echo -n "Press 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:";
|
||||
# read -n1 ans
|
||||
# echo -n "Pressed";
|
||||
# pico ../src/index.html;
|
||||
# echo -n 'Check Robots.txt: For test and beta add "Diasallow /", for production remove it!';
|
||||
# echo -n "Press key:";
|
||||
# read -n1 ans
|
||||
# echo -n "Pressed";
|
||||
# rm -rf ../src/assets/common-assets/.svn/;
|
||||
# rm -rf ../src/app/openaireLibrary/.svn/;
|
||||
# cd ..; npm run build:ssr; cd deploy;
|
||||
|
@ -17,10 +34,11 @@
|
|||
##<-- to here
|
||||
|
||||
#Deploy instructions!
|
||||
##copy "deploy-folder" in beta.connect.openaire.eu
|
||||
##coppies of previous deployments exist in "/home/argiro.kokogiannaki/connect-portal/connectYYYY-MM-DD"
|
||||
##run "npm i"
|
||||
##become nodejs user: "sudo su nodejs -s /bin/bash"
|
||||
##go to "cd /srv/www/portal/connect"
|
||||
##cp files from "cp -r HOME_PATH/deploy-folder/* ."
|
||||
##restart portal "pm2 restart connect"
|
||||
#copy "deploy-folder" in beta.connect.openaire.eu or connect.openaire.eu
|
||||
#copies of previous deployments exist in "/home/argiro.kokogiannaki/connect-portal/connectYYYY-MM-DD"
|
||||
#run "npm i"
|
||||
#become nodejs user to 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/connect"
|
||||
#copy deployment files to the portal folder "cp -r HOME_PATH/deploy-folder/* /srv/www/portal/connect"
|
||||
#restart portal to get the changes "pm2 restart connect"
|
||||
|
|
|
@ -0,0 +1,110 @@
|
|||
{
|
||||
"environment" : "production",
|
||||
"enablePiwikTrack" : false,
|
||||
"enableHelper" : true,
|
||||
"useCache" : true,
|
||||
"showContent" : true,
|
||||
"metricsAPIURL" : "https://services.openaire.eu/usagestats/",
|
||||
"framesAPIURL" : "https://www.openaire.eu/stats3/",
|
||||
"statisticsAPIURL" : "https://services.openaire.eu/stats-api/",
|
||||
"statisticsFrameAPIURL":"https://www.openaire.eu/stats/",
|
||||
"statisticsFrameNewAPIURL": "",
|
||||
"useNewStatistisTool":false,
|
||||
"claimsAPIURL" : "https://services.openaire.eu/claims/rest/claimsService/",
|
||||
"searchAPIURLLAst" : "https://services.openaire.eu/search/v2/api/",
|
||||
"searchResourcesAPIURL" : "https://services.openaire.eu/search/v2/api/resources",
|
||||
"openCitationsAPIURL" : "https://services.openaire.eu/opencitations/getCitations?id=",
|
||||
"csvAPIURL" : "https://services.openaire.eu/search/v2/api/reports",
|
||||
"searchCrossrefAPIURL" : "https://api.crossref.org/works",
|
||||
"searchDataciteAPIURL" : "https://api.datacite.org/works",
|
||||
"searchOrcidURL" : "https://pub.orcid.org/v2.1/",
|
||||
"orcidURL" : "https://orcid.org/",
|
||||
"pmidURL" : "http://www.ncbi.nlm.nih.gov/pubmed/",
|
||||
"doiURL" : "https://dx.doi.org/",
|
||||
"cordisURL" : "http://cordis.europa.eu/projects/",
|
||||
"pmcURL" : "http://europepmc.org/articles/",
|
||||
"handleURL" : "http://hdl.handle.net/",
|
||||
"openDoarURL": "http://v2.sherpa.ac.uk/id/repository/",
|
||||
"r3DataURL": "http://service.re3data.org/repository/",
|
||||
"zenodo" : "https://zenodo.org/",
|
||||
"zenodoCommunities" : "https://zenodo.org/api/communities/",
|
||||
"openAccess" : "https://www.openaire.eu/support/faq#article-id-234",
|
||||
"openAccessRepo" : "https://www.openaire.eu/support/faq#article-id-310",
|
||||
"fp7Guidlines" : "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme",
|
||||
"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/utils-service",
|
||||
|
||||
"vocabulariesAPI" :"https://services.openaire.eu/provision/mvc/vocabularies/",
|
||||
|
||||
"piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=",
|
||||
"piwikSiteId" : "112",
|
||||
"loginUrl" :"https://services.openaire.eu/_UPDATE_/openid_connect_login",
|
||||
|
||||
"logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
|
||||
|
||||
"cookieDomain" :".openaire.eu",
|
||||
|
||||
"feedbackmail" :"feedback@openaire.eu",
|
||||
|
||||
"cacheUrl" :"https://explore.openaire.eu/cache/get?url=",
|
||||
|
||||
"datasourcesAPI": "https://services.openaire.eu/openaire/ds/search/",
|
||||
|
||||
"adminToolsAPIURL" :"https://services.openaire.eu/uoa-admin-tools/",
|
||||
|
||||
"adminToolsCommunity" :"connect",
|
||||
"contextsAPI":"https://services.openaire.eu/openaire/context",
|
||||
|
||||
"communityAPI": "https://services.openaire.eu/openaire/community/",
|
||||
"communitiesAPI": "https://services.openaire.eu/openaire/community/communities",
|
||||
|
||||
"csvLimit": 2000,
|
||||
"pagingLimit": 20,
|
||||
"resultsPerPage": 10,
|
||||
|
||||
"baseLink" : "https://connect.openaire.eu",
|
||||
|
||||
"searchLinkToPublication" : "/search/publication?articleId=",
|
||||
"searchLinkToProject" : "/search/project?projectId=",
|
||||
"searchLinkToDataProvider" : "/search/dataprovider?datasourceId=",
|
||||
"searchLinkToDataset" : "/search/dataset?datasetId=",
|
||||
"searchLinkToSoftwareLanding" : "/search/software?softwareId=",
|
||||
"searchLinkToOrp" : "/search/other?orpId=",
|
||||
"searchLinkToOrganization" : "/search/organization?organizationId=",
|
||||
|
||||
"searchLinkToPublications" : "/search/find/publications",
|
||||
"searchLinkToDataProviders" : "/search/find/dataproviders",
|
||||
"searchLinkToProjects" : "/search/find/projects",
|
||||
"searchLinkToDatasets" : "/search/find/datasets",
|
||||
"searchLinkToSoftware" : "/search/find/software",
|
||||
"searchLinkToOrps" : "/search/find/other",
|
||||
"searchLinkToOrganizations" : "/search/find/organizations",
|
||||
"searchLinkToCompatibleDataProviders" : "/search/content-providers",
|
||||
"searchLinkToCompatibleDataProvidersTable" : "/search/content-providers-table",
|
||||
"searchLinkToEntityRegistriesDataProviders" : "/search/entity-registries",
|
||||
"searchLinkToEntityRegistriesDataProvidersTable" : "/search/entity-registries-table",
|
||||
"searchLinkToJournals" : "/search/journals",
|
||||
"searchLinkToJournalsTable" : "/search/journals-table",
|
||||
|
||||
"searchLinkToAdvancedPublications" : "/search/advanced/publications",
|
||||
"searchLinkToAdvancedProjects" : "/search/advanced/projects",
|
||||
"searchLinkToAdvancedDatasets" : "/search/advanced/datasets",
|
||||
"searchLinkToAdvancedSoftware" : "/search/advanced/software",
|
||||
"searchLinkToAdvancedOrps" : "/search/advanced/other",
|
||||
"searchLinkToAdvancedDataProviders" : "/search/advanced/dataproviders",
|
||||
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations",
|
||||
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
|
||||
"showLastIndexInformationLink" : true,
|
||||
"widgetLink" : "https://www.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
|
||||
"claimsInformationLink": "https://www.openaire.eu/linking",
|
||||
"depositLearnHowPage": "/participate/deposit/learn-how",
|
||||
"depositSearchPage": "/participate/deposit/search",
|
||||
"shareInZenodoPage": "/participate/deposit/zenodo",
|
||||
"reCaptchaSiteKey": "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P",
|
||||
|
||||
"admins" : ["rcd-helpdesk@openaire.eu"],
|
||||
"lastIndexUpdate": "2019-07-24",
|
||||
"indexInfoAPI": "http://services.openaire.eu/openaire/info/"
|
||||
}
|
|
@ -130,7 +130,7 @@ export class CommunityComponent {
|
|||
this._meta.updateTag({content: community.title}, "property='og:title'");
|
||||
this._title.setTitle(community.title);
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.piwiksub = this._piwikService.trackView(this.properties, community.title, PiwikHelper.siteIDs[this.communityId]).subscribe();
|
||||
this.piwiksub = this._piwikService.trackView(this.properties, community.title, PiwikHelper.getSiteId(this.communityId,this.properties.environment)).subscribe();
|
||||
}
|
||||
if (this.community.zenodoCommunity) {
|
||||
this._ΖenodoCommunitieService.getZenodoCommunityById(this.properties, this.properties.zenodoCommunities + this.community.zenodoCommunity, null).subscribe(
|
||||
|
|
|
@ -14,6 +14,28 @@ export class PiwikHelper{
|
|||
"aginfra":93,
|
||||
"clarin":100,
|
||||
"dariah":103
|
||||
};
|
||||
public static siteIDsProduction={
|
||||
"connect": 112,
|
||||
"dh-ch":198,
|
||||
"ee":200,
|
||||
"egi":'',
|
||||
"elixir-gr":'',
|
||||
"fam":197,
|
||||
"instruct":'',
|
||||
"mes":196,
|
||||
"ni":199,
|
||||
"oa-pg":'',
|
||||
"rda":'',
|
||||
"aginfra":'',
|
||||
"clarin":'',
|
||||
"dariah":''
|
||||
};
|
||||
public static getSiteId(communityId:string, environment:string){
|
||||
if(environment == 'production'){
|
||||
return this.siteIDsProduction[communityId];
|
||||
}
|
||||
return this.siteIDs[communityId];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue