Skip to content

Commit

Permalink
APP_RUNTIME as docker environment variable (#40)
Browse files Browse the repository at this point in the history
APP_RUNTIME as docker environment variable
  • Loading branch information
Yoann-TYT authored Oct 19, 2022
1 parent 1e45303 commit 0f04767
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docs/worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,12 @@ To start any Symfony application in a worker, install the FrankenPHP package of
composer require runtime/frankenphp-symfony
```

Then set the `APP_RUNTIME` environment variable to use the FrankenPHP Symfony Runtime:

```sh
# .env
APP_RUNTIME='Runtime\FrankenPhpSymfony\Runtime'
```

Finally, start your app server:
Start your app server by defining the `APP_RUNTIME` environment variable to use the FrankenPHP Symfony Runtime

```sh
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
Expand Down

0 comments on commit 0f04767

Please sign in to comment.