Skip to content

Testing Server (serve)

JulianFun123 edited this page Nov 17, 2019 · 1 revision

We are using the built in php -S testserver!

php uppm serve

Configurating

INFO Every option is optionial!

Option Default
directory ./ (project directory)
routerfile none
host 0.0.0.0 (localhost)
port 8000
{
    "name": "uppm",
    ...
    "serve": {
        "directory": "public", 
        "routerFile": "index.php",
        "host": "0.0.0.0",
        "port": 8000 
    }
}

routerFile Redirects every request to the file. It's useful for routing!

You could also check out Ulole Framework

Clone this wiki locally