Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #153 from joomlatools/hotfix/152-share
Browse files Browse the repository at this point in the history
#152: when creating a screen also provide a -S name for easy killing …
  • Loading branch information
yiendos committed Jul 17, 2019
2 parents f5421b5 + bb59fdf commit ed2a184
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->www = $input->getOption('www');
$this->site = $input->getArgument('site');

//first lets clear any existing ngrok screens
`screen -S ngrokShare -X quit`;

$this->_check();

//in order to share joomla.box there can't be a vhost override
Expand Down Expand Up @@ -128,8 +131,8 @@ protected function _launchNgrok()
$ngrok_command = "ngrok http $this->site.test:80";
}

//launch ngrok and create a new screen to keep the user on the foreground
`screen -d -m $ngrok_command`;
//launch ngrok and create a new screen (with screen name) to keep the user on the foreground
`screen -S ngrokShare -d -m $ngrok_command`;

//wait for the api to return connection details
do
Expand Down

0 comments on commit ed2a184

Please sign in to comment.