Skip to content

Commit f712dcc

Browse files
committed
docs: deploying on macOS
1 parent 1f216dd commit f712dcc

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

docs/production.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,21 @@ which can cause issues like incorrect HTTPS detection or wrong client IP address
171171
If you want to deploy your app on a cluster of machines, you can use [Docker Swarm](https://docs.docker.com/engine/swarm/stack-deploy/),
172172
which is compatible with the provided Compose files.
173173
To deploy on Kubernetes, take a look at [the Helm chart provided with API Platform](https://api-platform.com/docs/deployment/kubernetes/), which uses FrankenPHP.
174+
175+
## Deploying on macOS
176+
177+
FrankenPHP also runs natively on macOS.
178+
179+
Install it with [Homebrew](https://brew.sh):
180+
181+
```console
182+
brew install dunglas/frankenphp/frankenphp
183+
```
184+
185+
To run FrankenPHP in the background and start it automatically at boot, use [`brew services`](https://github.com/Homebrew/homebrew-services):
186+
187+
```console
188+
brew services start dunglas/frankenphp/frankenphp
189+
```
190+
191+
The service runs FrankenPHP with the configuration file located at `$(brew --prefix)/etc/Caddyfile`.

0 commit comments

Comments
 (0)