Documentation

No matching pages.

API

Config

Facade

Lifecycle

Class: ServeTask

Full name: Azera\Cli\Tasks\ServeTask

Start the PHP built-in development server.

Usage: serve [--host=] [--port=] [--docroot=

]

Options: --host= Host address to bind to (default: 0.0.0.0) --port= Port number to listen on (default: 8000) --docroot=

Document root directory relative to project root (default: public)

Examples: serve # start on 0.0.0.0:8000 serve --port=8888 # start on port 8888 serve --host=127.0.0.1 # bind to localhost only

Public Properties

  • public Console $console ·
  • public array $options ·

Public methods

runAction() ·

public function runAction(): void

Return value

  • Type: void

Back to the Index