Updated web server for Steffen
This commit is contained in:
parent
26e6260e8d
commit
a7af86ad43
2 changed files with 4 additions and 4 deletions
|
@ -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!";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue