Skip to content

Commit

Permalink
Merge pull request #23 from valantic/feature/active-index-output
Browse files Browse the repository at this point in the history
Output currently active index after blue/green switch
  • Loading branch information
limenet committed Apr 3, 2023
2 parents 3c29ce2 + 5c7fe0d commit 8c1f5cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Command/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ protected function processIndex(IndexInterface $indexConfig): void
$oldIndex->removeAlias($indexConfig->getName());
$newIndex->addAlias($indexConfig->getName());
$oldIndex->flush();

$this->output->writeln(sprintf('<comment>-> %s is now active</comment>', $newIndex->getName()));
}
}

Expand Down

0 comments on commit 8c1f5cf

Please sign in to comment.