kohkimakimoto/altax-server

Running php built-in web server via altax.

v0.2.1 2014-02-11 06:28 UTC

This package is auto-updated.

Last update: 2024-12-07 00:56:02 UTC


README

Build Status

Running php built-in web server via altax.

Installation

Edit your .altax/composer.json file like the following

{
  "require": {
    "kohkimakimoto/altax-server": "dev-master"
  }
}

Run altax update

$ altax update

Add the following line your .altax/config.php file.

Task::register('server', 'Altax\Contrib\Server\Command\ServerCommand');

Usage

Run the task command

$ altax server [-H|--host[="..."]] [-p|--port[="..."]] [-t|--docroot[="..."]] [script]

Configuration

Example:

Task::register('server', 'Altax\Contrib\Server\Command\ServerCommand')
->config(array(
    "host" => "localhost",
    "port" => 1234,
    "docroot" => "/path/to/document/root",
    "script" => "/path/to/router/script.php",
    ));

host

The host address of the server.

port

The port of the server.

docroot

The document root of the server.

script

Router script of the server.

See also