Skip to content

Commit 85d25d6

Browse files
authored
[Frankenphp Symfony] Define APP_RUNTIME environment variable (#131)
1 parent 3f41435 commit 85d25d6

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/frankenphp-symfony/README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ composer require runtime/frankenphp-symfony
1414

1515
Define the environment variable `APP_RUNTIME` for your application.
1616

17-
```
18-
// .env
19-
APP_RUNTIME=Runtime\FrankenPhpSymfony\Runtime
20-
```
17+
Dotenv Component is executed after Runtime Component, so APP_RUNTIME must be available in your container.
2118

2219
```
23-
// .rr.yaml
24-
server:
25-
...
26-
env:
27-
APP_RUNTIME: Runtime\FrankenPhpSymfony\Runtime
20+
docker run \
21+
-e FRANKENPHP_CONFIG="worker ./public/index.php" \
22+
-e APP_RUNTIME=Runtime\\FrankenPhpSymfony\\Runtime \
23+
-v $PWD:/app \
24+
-p 80:80 -p 443:443 \
25+
dunglas/frankenphp
2826
```
2927

3028
```php

0 commit comments

Comments
 (0)