[ACA-3342] Rename API_HOST to API_CONTENT_HOST (#1475)

* Rename API_HOST to API_CONTENT_HOST

* Use the right property called API_CONTENT_HOST

* Replace missing keys
This commit is contained in:
Maurizio Vitale
2020-05-22 09:17:55 +01:00
committed by GitHub
parent 5a12345865
commit e9f33c554d
4 changed files with 11 additions and 10 deletions

View File

@@ -4,16 +4,16 @@ const program = require('commander');
require('dotenv').config({ path: process.env.ENV_FILE });
const fs = require('fs');
const API_HOST = process.env.API_HOST || 'api';
const API_CONTENT_HOST = process.env.API_CONTENT_HOST || 'api';
const OAUTH_HOST = process.env.OAUTH_HOST || 'keycloak';
const options = {
apiHost: {
flags: '-a, --api-host',
description: "set apiHost's and ecmHost's value with API_HOST",
description: "set apiHost's and ecmHost's value with API_CONTENT_HOST",
set: appConfig => {
appConfig.ecmHost = API_HOST;
appConfig.aosHost = API_HOST + '/alfresco/aos';
appConfig.ecmHost = API_CONTENT_HOST;
appConfig.aosHost = API_CONTENT_HOST + '/alfresco/aos';
}
},
oauthHost: {