Commit 148d47d2 authored by Christopher Fullarton's avatar Christopher Fullarton

Adds custom build and environment for the thm beta server

parent d057c2b4
Pipeline #30381 passed with stages
in 13 minutes and 10 seconds
......@@ -114,7 +114,7 @@ build-beta:
script:
- npm install
- npm install typescript@3.4.5
- npm run build:WESTERMANN
- npm run build:BETA_THM
artifacts:
paths:
- dist
......
......@@ -154,6 +154,30 @@
}
]
},
"thmBeta": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"commonChunk": true,
"buildOptimizer": true,
"serviceWorker": true,
"ngswConfigPath": "src/ngsw-config.json",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.thm.beta.ts"
},
{
"replace": "src/assets/piwik/piwik.js",
"with": "src/assets/piwik/piwik.prod.js"
}
]
},
"westermann": {
"optimization": true,
"outputHashing": "all",
......@@ -192,6 +216,9 @@
"thmStaging": {
"browserTarget": "frontend:build:thmStaging"
},
"thmBeta": {
"browserTarget": "frontend:build:thmBeta"
},
"westermann": {
"browserTarget": "frontend:build:westermann"
}
......
......@@ -21,6 +21,7 @@
"prebuild:PROD": "npm run clean",
"build:PROD": "ng build --prod",
"build:STAGING_THM": "ng build --configuration=thmStaging",
"build:BETA_THM": "ng build --configuration=thmBeta",
"build:WESTERMANN": "ng build --configuration=westermann",
"build:PROD:DEPLOY": "npm run build:PROD && npm run purify",
"build:PROD-STATS": "ng build --prod --stats-json",
......
......@@ -2,11 +2,11 @@ import { InjectableRxStompConfig } from '@stomp/ng2-stompjs';
import { environment } from '../environments/environment';
const rxStompConfig: InjectableRxStompConfig = {
brokerURL: environment.stompEndpoint,
brokerURL: environment.stompConfig.endpoint,
connectHeaders: {
login: 'guest',
passcode: 'guest',
login: environment.stompConfig.user,
passcode: environment.stompConfig.password,
},
heartbeatIncoming: 0,
......
......@@ -7,7 +7,11 @@ export const environment: IEnvironment = {
serverEndpoint: 'https://staging.arsnova.click/backend',
httpApiEndpoint: 'https://staging.arsnova.click/backend/api/v1',
httpLibEndpoint: 'https://staging.arsnova.click/backend/lib',
stompEndpoint: 'wss://staging.arsnova.click/rabbitmq/ws',
stompConfig: {
endpoint: 'wss://staging.arsnova.click/rabbitmq/ws',
user: 'guest',
password: 'guest',
},
leaderboardAmount: 5,
readingConfirmationEnabled: false,
confidenceSliderEnabled: false,
......
import { LoginMechanism } from '../lib/enums/enums';
import { IEnvironment } from '../lib/interfaces/IEnvironment';
export const environment: IEnvironment = {
production: true,
ssrEndpoint: 'https://beta.arsnova.click/backend',
serverEndpoint: 'https://beta.arsnova.click/backend',
httpApiEndpoint: 'https://beta.arsnova.click/backend/api/v1',
httpLibEndpoint: 'https://beta.arsnova.click/backend/lib',
stompConfig: {
endpoint: 'wss://beta.arsnova.click/rabbitmq/ws',
user: 'beta',
password: 'beta',
},
leaderboardAmount: 5,
readingConfirmationEnabled: false,
confidenceSliderEnabled: false,
infoAboutTabEnabled: false,
infoProjectTabEnabled: false,
infoBackendApiEnabled: false,
requireLoginToCreateQuiz: true,
forceQuizTheme: true,
loginMechanism: [LoginMechanism.UsernamePassword, LoginMechanism.Token],
};
export enum DEVICE_TYPES {
XS, SM, MD, LG, XLG
}
export enum LIVE_PREVIEW_ENVIRONMENT {
ANSWEROPTIONS, QUESTION
}
......@@ -7,7 +7,11 @@ export const environment: IEnvironment = {
serverEndpoint: 'https://staging.arsnova.click/backend',
httpApiEndpoint: 'https://staging.arsnova.click/backend/api/v1',
httpLibEndpoint: 'https://staging.arsnova.click/backend/lib',
stompEndpoint: 'wss://staging.arsnova.click/rabbitmq/ws',
stompConfig: {
endpoint: 'wss://staging.arsnova.click/rabbitmq/ws',
user: 'guest',
password: 'guest',
},
leaderboardAmount: 5,
readingConfirmationEnabled: false,
confidenceSliderEnabled: false,
......
......@@ -12,7 +12,11 @@ export const environment: IEnvironment = {
serverEndpoint: 'http://192.168.2.106:3010',
httpApiEndpoint: 'http://192.168.2.106:3010/api/v1',
httpLibEndpoint: 'http://192.168.2.106:3010/lib',
stompEndpoint: 'ws://127.0.0.1:15674/ws',
stompConfig: {
endpoint: 'ws://127.0.0.1:15674/ws',
user: 'guest',
password: 'guest',
},
leaderboardAmount: 5,
readingConfirmationEnabled: false,
confidenceSliderEnabled: false,
......
......@@ -7,7 +7,11 @@ export const environment: IEnvironment = {
serverEndpoint: 'https://test01.ars.sbzo.de',
httpApiEndpoint: 'https://test01.ars.sbzo.de/api/v1',
httpLibEndpoint: 'https://test01.ars.sbzo.de/lib',
stompEndpoint: 'wss://test01.ars.sbzo.de/rabbitmq/ws',
stompConfig: {
endpoint: 'wss://test01.ars.sbzo.de/rabbitmq/ws',
user: 'guest',
password: 'guest',
},
leaderboardAmount: 5,
readingConfirmationEnabled: false,
confidenceSliderEnabled: false,
......
......@@ -6,7 +6,9 @@ export interface IEnvironment {
serverEndpoint: string;
httpApiEndpoint: string;
httpLibEndpoint: string;
stompEndpoint: string;
stompConfig: {
endpoint: string, user: string, password: string,
};
leaderboardAmount: number;
readingConfirmationEnabled: boolean;
confidenceSliderEnabled: boolean;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment