-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Laravel example #231
Conversation
de34227
to
ce55f42
Compare
e06f57b
to
8b470fa
Compare
docs/laravel.md
Outdated
# The domain name of your server | ||
localhost | ||
|
||
route { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of route
, you can use order php before php_fastcgi
(or before reverse_proxy
or whatever you prefer, see https://caddyserver.com/docs/caddyfile/directives#directive-order) in global options. Removes a level of nesting.
docs/laravel.md
Outdated
# FrankenPHP! | ||
@phpFiles path *.php | ||
php @phpFiles | ||
encode zstd gzip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you used route
, PHP responses won't be gzipped, which is unfortunate. I'd put this earlier (or just remove route
as mentioned earlier)
TL;DR:
docker run -p 443:443 -v $PWD:/app dunglas/frankenphp
is all you need to start a Laravel application with FrankenPHP!I'll now look at how to use Octane to enable worker mode.