Looping restarting worker on laravel
Closed this issue · 1 comments
rymesaint commented
What happened?
I got a restarting worker looping when i access the app
{
servers {
enable_full_duplex
}
auto_https off
frankenphp {
num_threads 6
worker {
file public/index.php
num 2
watch .env
watch app/*.php
watch app/**/*.php
watch app/**/**/*.php
}
}
}
localhost {
# Set the webroot to the public/ directory
root * public/
# Enable compression (optional)
encode zstd br gzip
# Enable static file serving for assets
file_server
php_server
log {
output file /var/log/localhost/access.log
level INFO
}
}
Build Type
Custom (tell us more in the description)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
i use default php configuration from frankenphp
Relevant log output
No response
dunglas commented
You need to use the worker script provided by Octane when using Laravel. Using index.php
will not work.