Skip to content

Commit b755dd6

Browse files
authored
Roadrunner Nyholm - Add information about Roadrunner server env config to README (#101)
1 parent 8d4f011 commit b755dd6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@ composer require runtime/roadrunner-symfony-nyholm
1515
Define the environment variable `APP_RUNTIME` for your application.
1616

1717
```
18+
// .env
1819
APP_RUNTIME=Runtime\RoadRunnerSymfonyNyholm\Runtime
1920
```
2021

22+
```
23+
// .rr.yaml
24+
server:
25+
...
26+
env:
27+
APP_RUNTIME: Runtime\RoadRunnerSymfonyNyholm\Runtime
28+
```
2129

2230
```php
2331
// public/index.php
@@ -29,6 +37,4 @@ require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
2937
return function (array $context) {
3038
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
3139
};
32-
3340
```
34-

0 commit comments

Comments
 (0)