init
This commit is contained in:
12
web10/tools/serve.ps1
Normal file
12
web10/tools/serve.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
param(
|
||||
[string]$HostAddress = "127.0.0.1",
|
||||
[int]$Port = 8000
|
||||
)
|
||||
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$server = Join-Path $root "server.php"
|
||||
$public = Join-Path $root "public"
|
||||
$addr = "$HostAddress`:$Port"
|
||||
|
||||
& "$PSScriptRoot/php82.ps1" "-S" $addr "-t" $public $server
|
||||
exit $LASTEXITCODE
|
||||
Reference in New Issue
Block a user