Explorar o código

Updated web server for Steffen

markseu %!s(int64=2) %!d(string=hai) anos
pai
achega
a7af86ad43
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 2 2
      system/extensions/serve.php
  2. 2 2
      system/extensions/update-current.ini

+ 2 - 2
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!";

+ 2 - 2
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