Edit on GitHub
Jump to docs navigation

Console command / Web Server / server:run

Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 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 ./bin/console 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 ./bin/console server:run

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

 // Quit the server with CONTROL-C.

Specifying host name and port

$ php ./bin/console 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 Github.