Detailed instructions for deployment, add content folder and modules
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@52604 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
9d0a640539
commit
e950c2deb0
|
@ -1,8 +1,24 @@
|
|||
cp connect-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 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 connect-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 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"
|
||||
##cp files from "cp -r HOME_PATH/deploy-folder/* ."
|
||||
##restart portal "pm2 restart connect"
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import {ContentPageComponent} from './contentPage.component';
|
||||
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: ContentPageComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
])
|
||||
]
|
||||
})
|
||||
export class ContentPageRoutingModule { }
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
<div class=" uk-section uk-margin-small-top tm-middle uk-container" id="tm-main">
|
||||
<div class="uk-container uk-margin-bottom">
|
||||
<div class="uk-article-title custom-article-title">
|
||||
About OpenAIRE Connect content
|
||||
</div>
|
||||
<p>
|
||||
In this page we will provide you information about OpenAIRE Connect content.
|
||||
Comming soon...
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,34 @@
|
|||
import {Component, Input, Output, EventEmitter, ViewChild, ElementRef} from '@angular/core';
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
import {ActivatedRoute, Router} from '@angular/router';
|
||||
import {Title, Meta} from '@angular/platform-browser';
|
||||
|
||||
@Component({
|
||||
selector: 'content',
|
||||
templateUrl: './contentPage.component.html'
|
||||
})
|
||||
export class ContentPageComponent {
|
||||
|
||||
constructor ( private route: ActivatedRoute, private _router: Router,
|
||||
private _meta: Meta, private _title: Title) {}
|
||||
|
||||
public ngOnInit() {
|
||||
this.updateTitle("Content");
|
||||
this.updateDescription("content, open access");
|
||||
|
||||
}
|
||||
|
||||
private updateDescription(description:string){
|
||||
this._meta.updateTag({content:description},"name='description'");
|
||||
this._meta.updateTag({content:description},"property='og:description'");
|
||||
}
|
||||
private updateTitle(title:string){
|
||||
var _prefix ="OpenAIRE | ";
|
||||
var _title = _prefix + ((title.length> 50 ) ?title.substring(0,50):title);
|
||||
this._title.setTitle(_title);
|
||||
this._meta.updateTag({content:_title},"property='og:title'");
|
||||
}
|
||||
private updateUrl(url:string){
|
||||
this._meta.updateTag({content:url},"property='og:url'");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
|
||||
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
import {ContentPageComponent} from './contentPage.component';
|
||||
import {ContentPageRoutingModule} from './content-routing.module';
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
ContentPageRoutingModule
|
||||
],
|
||||
declarations: [
|
||||
ContentPageComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
|
||||
exports: [
|
||||
ContentPageComponent
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
export class ContentPageModule{}
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
"cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=",
|
||||
|
||||
"adminToolsAPIURL" :"http://scoobydoo.di.uoa.gr:8080/uoa-admin-tools",
|
||||
"adminToolsAPIURL" :"http://duffy.di.uoa.gr:8080/uoa-admin-tools",
|
||||
|
||||
"adminToolsCommunity" :"openaire",
|
||||
|
||||
|
|
Loading…
Reference in New Issue