13 lines
297 B
PowerShell
13 lines
297 B
PowerShell
|
|
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
|