Edit on GitHub
Jump to docs navigation

Nut command / Web Server / server:run

Note: You are currently reading the documentation for Bolt 3.4. Looking for the documentation for Bolt 3.6 instead?

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.

Usage

    php ./app/nut server:run [options] [--] [<address>]

Arguments

Argument Description
address Address:port [default: "0.0.0.0"]

Options

Option Description
-p, --port=PORT Address port number [default: "8000"]

Examples

Default

$ php ./app/nut server:run

 [OK] Server running on http://0.0.0.0:8000

 // Quit the server with CONTROL-C.

Specifying host name and port

$ php ./app/nut server:run example.com --port=8888

 [OK] Server running on http://example.com:8888

 // Quit the server with CONTROL-C.
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on IRC.