move path to variables

This commit is contained in:
Sieciech 2021-07-27 19:46:13 +02:00
parent 4a26262bac
commit 90d5de728d
4 changed files with 108 additions and 92 deletions

13
Jenkinsfile vendored
View File

@ -3,6 +3,7 @@ pipeline {
environment { environment {
DatabaseUrl = sh(returnStdout: true, script: 'bash /var/lib/jenkins/variables/CureNet/var.sh ${BRANCH_NAME} DatabaseUrl').trim() DatabaseUrl = sh(returnStdout: true, script: 'bash /var/lib/jenkins/variables/CureNet/var.sh ${BRANCH_NAME} DatabaseUrl').trim()
ProjectPath = sh(returnStdout: true, script: 'bash /var/lib/jenkins/variables/CureNet/var.sh ${BRANCH_NAME} ProjectPath').trim()
DatabaseUrlTesting = sh(returnStdout: true, script: 'bash /var/lib/jenkins/variables/CureNet/var.sh master DatabaseUrl').trim() DatabaseUrlTesting = sh(returnStdout: true, script: 'bash /var/lib/jenkins/variables/CureNet/var.sh master DatabaseUrl').trim()
} }
@ -172,9 +173,9 @@ pipeline {
stage('Frontend') { stage('Frontend') {
steps { steps {
dir(path: 'src/frontend') { dir(path: 'src/frontend') {
sh 'ssh web@fufle.net touch /web/fufle.net/curenet/dev/frontend/REMOVEME' sh 'ssh web@fufle.net touch ${ProjectPath}/frontend/REMOVEME'
sh 'ssh web@fufle.net rm -rf /web/fufle.net/curenet/dev/frontend/*' sh 'ssh web@fufle.net rm -rf ${ProjectPath}/frontend/*'
sh 'scp -r dist/* web@fufle.net:/web/fufle.net/curenet/dev/frontend/' sh 'scp -r dist/* web@fufle.net:${ProjectPath}/frontend/'
} }
} }
@ -183,9 +184,9 @@ pipeline {
stage('Backend') { stage('Backend') {
steps { steps {
dir(path: 'src/backend') { dir(path: 'src/backend') {
sh 'ssh web@fufle.net touch /web/fufle.net/curenet/dev/backend/REMOVEME' sh 'ssh web@fufle.net touch ${ProjectPath}/backend/REMOVEME'
sh 'ssh web@fufle.net rm -rf /web/fufle.net/curenet/dev/backend/*' sh 'ssh web@fufle.net rm -rf ${ProjectPath}/backend/*'
sh 'scp -r ./* web@fufle.net:/web/fufle.net/curenet/dev/backend/' sh 'scp -r ./* web@fufle.net:${ProjectPath}/backend/'
} }
} }

View File

@ -46,6 +46,17 @@ export const appRoutes: AppRoute[] = [
}, },
], ],
}, },
{
path: 'questions',
component: NotFoundComponent,
menuEntries: [
{
label: 'MENU.QUESTIONS',
icon: 'fa fa-question',
level: 1,
}
],
},
{ {
path: 'messages', path: 'messages',
component: NotFoundComponent, component: NotFoundComponent,

View File

@ -19,7 +19,9 @@
"HOME": "Dashboard", "HOME": "Dashboard",
"PROFILE": "Profile", "PROFILE": "Profile",
"COMMUNITY": "Community", "COMMUNITY": "Community",
"GROUP": "My group",
"MESSAGES": "Messages", "MESSAGES": "Messages",
"QUESTIONS": "Q&A",
"TESTS": "Laboratory tests", "TESTS": "Laboratory tests",
"RESEARCH": "Research", "RESEARCH": "Research",
"ADMIN": "Admin", "ADMIN": "Admin",

View File

@ -19,7 +19,9 @@
"HOME": "Kokpit", "HOME": "Kokpit",
"PROFILE": "Profil", "PROFILE": "Profil",
"COMMUNITY": "Społeczność", "COMMUNITY": "Społeczność",
"GROUP": "Moja grupa",
"MESSAGES": "Wiadomości", "MESSAGES": "Wiadomości",
"QUESTIONS": "Pytania i odpowiedzi",
"TESTS": "Wyniki badań", "TESTS": "Wyniki badań",
"RESEARCH": "Badania naukowe", "RESEARCH": "Badania naukowe",
"ADMIN": "Panel administratora", "ADMIN": "Panel administratora",