Skip to content

Commit

Permalink
[Frankenphp Symfony] Define APP_RUNTIME environment variable (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann-TYT authored Oct 20, 2022
1 parent 5c45534 commit 6c75282
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ composer require runtime/frankenphp-symfony

Define the environment variable `APP_RUNTIME` for your application.

```
// .env
APP_RUNTIME=Runtime\FrankenPhpSymfony\Runtime
```
Dotenv Component is executed after Runtime Component, so APP_RUNTIME must be available in your container.

```
// .rr.yaml
server:
...
env:
APP_RUNTIME: Runtime\FrankenPhpSymfony\Runtime
docker run \
-e FRANKENPHP_CONFIG="worker ./public/index.php" \
-e APP_RUNTIME=Runtime\\FrankenPhpSymfony\\Runtime \
-v $PWD:/app \
-p 80:80 -p 443:443 \
dunglas/frankenphp
```

```php
Expand Down

0 comments on commit 6c75282

Please sign in to comment.