| 314 | } |
| 315 | |
| 316 | export function logDeployment(logger: Logger, org: string, projectName: string, deploymentOutput?: DeploymentDataType) { |
| 317 | if (deploymentOutput) { |
| 318 | logger.info(`Project: ${deploymentOutput.projectKey} |
| 319 | Status: ${chalk.blue(deploymentOutput.status)} |
| 320 | DeploymentID: ${deploymentOutput.id} |
| 321 | Deployment Type: ${deploymentOutput.type} |
| 322 | Indexer version: ${deploymentOutput.indexerImage} |
| 323 | Query version: ${deploymentOutput.queryImage} |
| 324 | Endpoint: ${deploymentOutput.endpoint} |
| 325 | Dictionary Endpoint: ${deploymentOutput.dictEndpoint} |
| 326 | Query URL: ${deploymentOutput.queryUrl} |
| 327 | Project URL: ${BASE_PROJECT_URL}/org/${org}/project/${projectName} |
| 328 | Advanced Settings for Query: ${JSON.stringify(deploymentOutput.configuration.config.query)} |
| 329 | Advanced Settings for Indexer: ${JSON.stringify(deploymentOutput.configuration.config.indexer)} |
| 330 | `); |
| 331 | } else { |
| 332 | logger.info(`Project: ${projectName} has been re-deployed`); |
| 333 | } |
| 334 | } |