MCPcopy Create free account
hub / github.com/subquery/subql / logDeployment

Function logDeployment

packages/cli/src/controller/deploy-controller.ts:316–334  ·  view source on GitHub ↗
(logger: Logger, org: string, projectName: string, deploymentOutput?: DeploymentDataType)

Source from the content-addressed store, hash-verified

314}
315
316export 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}

Callers 2

runMethod · 0.90
runMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected