-
Notifications
You must be signed in to change notification settings - Fork 302
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
Octane + FrankenPHP + Sail, stuck in "Application change detected. Restarting workers" #884
Comments
Which folders are defined in the watch block of your |
The default ones. Also, the Laravel is a standard Laravel installation: /*
|--------------------------------------------------------------------------
| File Watching
|--------------------------------------------------------------------------
|
| The following list of files and directories will be watched when using
| the --watch option offered by Octane. If any of the directories and
| files are changed, Octane will automatically reload your workers.
|
*/
'watch' => [
'app',
'bootstrap',
'config',
'database/**/*.php',
'public/**/*.php',
'resources/**/*.php',
'routes',
'composer.lock',
'.env',
], |
Hey there, Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out. Thanks! |
I faced the same issue, and could fixed by changing
|
@driesvints maybe fixing the default config as @gazzoy is pointing? |
@driesvints @jhm-ciberman if that's the case, I can make PR for it, so please let me know. |
I see, so you're using sub directories for config files? I'm not sure we support those. What happens with dot notation if you use config files like that? |
Correct me if I'm wrong, but I believe FrankenPHP generates and updates That's why we see continuous |
@gazzoy aah gotcha. That's a good find. Yes we'd love a PR for this, thanks! |
Cool, will do! |
@driesvints Created PR #890. Feel free to edit the title or message in PR. Thanks! |
Octane Version
v2.3.10
Laravel Version
v11.6.0
PHP Version
v8.3.6
What server type are you using?
FrankenPHP
Server Version
v1.1.4 PHP 8.3.6 Caddy v2.7.6
Database Driver & Version
Postgress
Description
Laravel Sail v1.29.1, running on WSL.
When installing Laravel Octane + FrankenPHP in my local dev environment I followed the documentation steps and added this to my
docker-compose.yml
:The problem is that if I
sail up -d
, then the code is cached and it doesn't reload the server when files changes.So I added the
--watch
option to theSUPERVISOR_PHP_COMMAND
:Now the server starts and is stuck in a loop saying
Application change detected. Restarting workers…
.The server does not respond to requests and it does not work properly.
Here is the full Docker container log for the Laravel Sail container:
Steps To Reproduce
docker-compose.yml
env variables:sail up -d
storage/logs/octane-server-state.json
is recreated every few seconds.The text was updated successfully, but these errors were encountered: