From ac85d3680ea1749561e310d8217b228dfacdd14e Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 31 Aug 2022 11:22:42 +0100 Subject: [PATCH] Display site URL after restarting --- inc/composer/class-command.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/composer/class-command.php b/inc/composer/class-command.php index eaf0ab99..9e21ff2a 100644 --- a/inc/composer/class-command.php +++ b/inc/composer/class-command.php @@ -452,7 +452,9 @@ protected function restart( InputInterface $input, OutputInterface $output ) { } ); if ( $return_val === 0 ) { + $site_url = $this->get_project_url(); $output->writeln( 'Restarted.' ); + $output->writeln( 'To access your site visit: ' . $site_url . '' ); } else { $output->writeln( 'Failed to restart services.' ); }