Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  run tower bin via composer
  • Loading branch information
Baptouuuu committed Jun 7, 2020
2 parents 7ea8fa1 + eb954d0 commit fe81210
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/Gene/Listen.php
Expand Up @@ -31,7 +31,11 @@ public function express(
): History {
try {
$preCondition = new Script(
Command::foreground('which')->withArgument('tower'),
Command::foreground('composer')
->withArgument('global')
->withArgument('exec')
->withArgument('tower help')
->withShortOption('v'),
);
$preCondition($target);
} catch (ScriptFailed $e) {
Expand All @@ -40,10 +44,11 @@ public function express(

try {
$listen = new Script(
Command::foreground('tower')
->withArgument('listen')
->withArgument('1337')
->withOption('daemon'),
Command::foreground('composer')
->withArgument('global')
->withArgument('exec')
->withArgument('tower listen 1337 --daemon')
->withShortOption('v'),
);
$listen($target);
} catch (ScriptFailed $e) {
Expand Down

0 comments on commit fe81210

Please sign in to comment.