dev-master
9999999-dev https://github.com/daschl/li3_serverBooting Lithium from the CLI.
The Requires
- php 5.4.*
- composer/installers dev-master
Wallogit.com
2017 © Pedro Peláez
Booting Lithium from the CLI.
Note that this is highly experimental and while it works, a lot of tests in /test seem to fail., (*1)
The easiest way to install li3_server is through Composer., (*2)
{
"require": {
"daschl/li3_server": "master"
}
}
Alternatively, you can install it directly from GitHub:, (*3)
$ cd libraries $ git clone git://github.com/daschl/li3_server.git
Now you need to add it to your Lithium bootstrap file (config/bootstrap/libraries.php):, (*4)
Libraries::add('li3_server');
Head to the command line and run it through li3 server., (*5)
$ li3 server -------------------------------------------------------------------------------- Lithium Development Server -------------------------------------------------------------------------------- Booting: php -S localhost:8000 -t /path/to/webroot Starting on localhost:8000...
You can also override the following settings:, (*6)
php.localhost.8000.LITHIUM_APP_PATH/webroot.config/router.php.If you are still running mainly PHP 5.3 and want to experiment with the server, you can do it like this:, (*7)
$ li3 server --php=/home/michael/Downloads/php-5.4.0RC6/sapi/cli/php -------------------------------------------------------------------------------- Lithium Development Server -------------------------------------------------------------------------------- Booting: /home/michael/Downloads/php-5.4.0RC6/sapi/cli/php -S localhost:8000 -t /home/michael/web/framework/app/webroot Starting on localhost:8000...
Booting Lithium from the CLI.