mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* refactor cloud test * fix lint * fix ecm test * Update login-sso.page.ts * fix redirect
23 lines
933 B
JavaScript
23 lines
933 B
JavaScript
// Protractor configuration file, see link for more information
|
|
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
|
|
require('dotenv').config({ path: process.env.ENV_FILE });
|
|
const fs = require('fs');
|
|
|
|
const configPath = './demo-shell/dist/app.config.json';
|
|
|
|
fs.readFile(configPath, (err, appConfigString) => {
|
|
if (err) throw err;
|
|
let appConfig = JSON.parse(appConfigString);
|
|
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);
|
|
});
|