diff --git a/system/extensions/serve.php b/system/extensions/serve.php index 38ca570..3298389 100755 --- a/system/extensions/serve.php +++ b/system/extensions/serve.php @@ -2,7 +2,7 @@ // Serve extension, https://github.com/annaesvensson/yellow-serve class YellowServe { - const VERSION = "0.8.22"; + const VERSION = "0.8.23"; public $yellow; // access to API // Handle initialisation @@ -34,7 +34,7 @@ class YellowServe { if ($this->checkServerSettings("$scheme://$address/")) { echo "Starting built-in web server. Open a web browser and go to $scheme://$address/\n"; echo "Press Ctrl+C to quit...\n"; - exec("php -S $address yellow.php 2>&1", $outputLines, $returnStatus); + exec(PHP_BINARY." -S $address yellow.php 2>&1", $outputLines, $returnStatus); $statusCode = $returnStatus!=0 ? 500 : 200; if ($statusCode!=200) { $output = !is_array_empty($outputLines) ? end($outputLines) : "Please check arguments!"; diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini index ea0a218..9c77ee1 100755 --- a/system/extensions/update-current.ini +++ b/system/extensions/update-current.ini @@ -96,11 +96,11 @@ Tag: feature system/extensions/static.php: static.php, create, update Extension: Serve -Version: 0.8.22 +Version: 0.8.23 Description: Built-in web server. DocumentationUrl: https://github.com/annaesvensson/yellow-serve DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/main/downloads/serve.zip -Published: 2022-11-03 18:24:31 +Published: 2023-04-30 21:53:23 Developer: Anna Svensson Tag: feature system/extensions/serve.php: serve.php, create, update