mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[AAE-15436] Fix init-aae-env await for apps to be deployed (#8697)
* [AAE-15436] Await for the applications to be deployed, add logger infos * [AAE-15436] Updated README with the envs usage
This commit is contained in:
parent
0fc904eee2
commit
74fd03b553
@ -235,7 +235,12 @@ adf-cli update-commit-sha --pathProject "$(pwd)" --skipGnu
|
|||||||
The following command is in charge of Initializing the activiti cloud env with the default apps:
|
The following command is in charge of Initializing the activiti cloud env with the default apps:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
adf-cli init-aae-env --host "gateway_env" --oauth "identity_env" --identityHost "identity_env" --modelerUsername "modelerusername" --modelerPassword "modelerpassword" --devopsUsername "devopsusername" --devopsPassword "devopspassword"
|
adf-cli init-aae-env --host "gateway_env" --oauth "identity_env" --identityHost "identity_env" --modelerUsername "modelerusername" --modelerPassword "modelerpassword" --devopsUsername "devopsusername" --devopsPassword "devopspassword"
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also specify the environment ids of the envs where to deploy the app adding the `--envs` option:
|
||||||
|
```bash
|
||||||
|
adf-cli init-aae-env --host "gateway_env" --oauth "identity_env" --identityHost "identity_env" --modelerUsername "modelerusername" --modelerPassword "modelerpassword" --devopsUsername "devopsusername" --devopsPassword "devopspassword" --envs envId1 envId2
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to add a new app the schema needs to be:
|
If you want to add a new app the schema needs to be:
|
||||||
|
@ -400,7 +400,10 @@ async function deployWithPayload(currentAbsentApp: any, projectRelease: any, env
|
|||||||
environmentId: envId
|
environmentId: envId
|
||||||
};
|
};
|
||||||
|
|
||||||
deploy(deployPayload);
|
logger.info(`Deploying ${currentAbsentApp.name} ${envId ? 'on env: ' + envId : '' }`);
|
||||||
|
await deploy(deployPayload);
|
||||||
|
logger.info(`Deployed ${currentAbsentApp.name} ${envId ? 'on env: ' + envId : '' }`);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function checkDescriptorExist(name: string) {
|
async function checkDescriptorExist(name: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user