summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-07-01 15:12:21 +0300
committerWolfy-J <[email protected]>2019-07-01 15:12:21 +0300
commit58c47496af9e8fc9db8d6a6ec9ac984388386701 (patch)
tree49af423cc57e02158967eb33ad56949de5cbe2f4 /README.md
parent8c2a3ef30605cfee86ba7bb5c85cb17c24740e53 (diff)
parent53ed5e5dc6836ac1d6222fed602204257583a549 (diff)
Merge branch 'master' of https://github.com/spiral/roadrunner
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 20 insertions, 2 deletions
diff --git a/README.md b/README.md
index 27be0208..967c11e2 100644
--- a/README.md
+++ b/README.md
@@ -47,11 +47,21 @@ Features:
- integrations with Symfony, Laravel, Slim, CakePHP, Zend Expressive, Spiral
- works on Windows
+Installation:
+--------
+To install:
+
+```
+$ composer require spiral/roadrunner
+$ ./vendor/bin/rr get-binary
+```
+
Example:
--------
```php
<?php
+// worker.php
ini_set('display_errors', 'stderr');
include "vendor/autoload.php";
@@ -75,11 +85,19 @@ Configuration can be located in `.rr.yaml` file ([full sample](https://github.co
```yaml
http:
address: 0.0.0.0:8080
- workers.command: "php psr-worker.php"
+ workers.command: "php worker.php"
```
> Read more in [Wiki](https://github.com/spiral/roadrunner/wiki/PHP-Workers).
+Run:
+----
+To run application server:
+
+```
+$ ./rr serve -v -d
+```
+
License:
--------
-The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [SpiralScout](https://spiralscout.com).
+The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [Spiral Scout](https://spiralscout.com).