title | level |
---|---|
server:run |
intermediate |
Nut's server:run
command runs PHP's built-in web server for your site testing
and basic development.
Note: Do not use this to run production web sites, it is for development and testing only.
php ./app/nut server:run [options] [--] [<address>]
Argument | Description |
---|---|
address | Address:port [default: "0.0.0.0"] |
Option | Description |
---|---|
-p, --port=PORT | Address port number [default: "8000"] |
$ php ./app/nut server:run
[OK] Server running on http://0.0.0.0:8000
// Quit the server with CONTROL-C.
$ php ./app/nut server:run example.com --port=8888
[OK] Server running on http://example.com:8888
// Quit the server with CONTROL-C.