-
Notifications
You must be signed in to change notification settings - Fork 32
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
Laravel Octane appears to be restarted twice #72
Comments
Had this issue with our own code with graceful shut downs. I.e. the watcher does not wait for the app to shutdown. Fixed & re-released this with this commit. Not sure about the maintenance status of this project so will keep it maintained in our fork until there is clearance. |
@fritz-gerneth I would like to try your solution. It appears you changed the package name in your fork, but it is not available from packagist. How can I install it? Also, perhaps you can try and post a PR to this project. There does not seem to be much activity, but that might just be because the project is somewhat finished - it is a simple utility after all, and apart from major new PHP versions and bug fixes, it should not need much maintenance. |
It is now posted to packagist. Either install from packagist or use the phar file (which we use over here). As there were more fixes than this single one it's not a single PR. Will split up & cherry pick if there is activity from the maintainer |
Thank you @fritz-gerneth, installing with Restarting now works, but it appears a bit imperfect - there is a message telling me the app crashed when I simply change whitespace in a file to trigger a reload:
|
Weird stuff.. It doesn't do that for me but restarts with the proper message... That'd mean artisan would quit with a non-zero code. Could you check the exit code ( ( I also pushed v1.0.1 to include the code on app crash ) |
The process exits with code
What exact command are you using to watch octane? |
Not using Laravel but for ReactPHP directly (i.e. |
It appears that Octane generally does not fail gracefully on |
Hi, thanks for this project 👋
I am trying to use this project as a lightweight alternative to
chokidar
for restarting Laravel Octane: https://laravel.com/docs/8.x/octane#watching-for-file-changesWhen updating a watched file, it appears the process is restarted twice:
If you need to reproduce this locally, a plain Laravel install with Octane should do:
The text was updated successfully, but these errors were encountered: