commit a7af86ad4357b1bb93e104ec790c566da640ce96
parent 26e6260e8d978e2f011ae4e4d8fc347def3b3000
Author: markseu <mark2011@mayberg.se>
Date: Sun, 30 Apr 2023 22:00:37 +0200
Updated web server for Steffen
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git 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
@@ -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