mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Refactor e2e PS-CLOUD (#5224)
* refactor cloud test * fix lint * fix ecm test * Update login-sso.page.ts * fix redirect
This commit is contained in:
@@ -4,17 +4,18 @@
|
||||
require('dotenv').config({ path: process.env.ENV_FILE });
|
||||
const fs = require('fs');
|
||||
|
||||
const PROXY_HOST_ADF = process.env.PROXY_HOST_ADF;
|
||||
const NOTIFICATION_LAST = process.env.NOTIFICATION_LAST || 8000;
|
||||
|
||||
const configPath = './demo-shell/dist/app.config.json';
|
||||
|
||||
fs.readFile(configPath, (err, appConfigString) => {
|
||||
if (err) throw err;
|
||||
let appConfig = JSON.parse(appConfigString);
|
||||
appConfig.bpmHost = PROXY_HOST_ADF;
|
||||
appConfig.ecmHost = PROXY_HOST_ADF;
|
||||
appConfig.notificationDefaultDuration = NOTIFICATION_LAST;
|
||||
appConfig.providers = process.env.PROVIDERS;
|
||||
appConfig.bpmHost = process.env.PROXY_HOST_ADF;
|
||||
appConfig.ecmHost = process.env.PROXY_HOST_ADF;
|
||||
appConfig.identityHost = process.env.URL_HOST_IDENTITY;
|
||||
appConfig.oauth2.host = process.env.URL_HOST_SSO_ADF;
|
||||
appConfig.notificationDefaultDuration = process.env.NOTIFICATION_LAST || 8000;
|
||||
appConfig.authType = process.env.AUTH_TYPE || 'BASIC';
|
||||
|
||||
let appConfigReplacedJson = JSON.stringify(appConfig);
|
||||
fs.writeFileSync(configPath, appConfigReplacedJson);
|
||||
|
Reference in New Issue
Block a user