Skip to content

Commit 3ec1cbf

Browse files
author
Greg Bowler
committed
Change server port when calling "run" command
Closes #6
1 parent 4b4a2e2 commit 3ec1cbf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Command/RunCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77

88
class RunCommand extends AbstractWebEngineCommand {
99
public function run(ArgumentValueList $arguments = null):void {
10+
$port = $arguments->get("port", 8080);
11+
1012
$this->executeScript(
1113
$arguments,
12-
["serve"],
14+
["serve", "--port", $port],
1315
["build", "--default", "vendor/phpgt/webengine/build.default.json", "--watch"],
1416
["cron", "--now", "--watch"]
1517
);

0 commit comments

Comments
 (0)