Skip to content

Commit

Permalink
fix laravel octane dev mode - watching file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciojs committed Oct 23, 2023
1 parent 852157f commit c212339
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions presets/laravel+octane/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ preset:
dst: kool.yml
- recipe: php-8.2-roadrunner

- name: 'Customize Database, Cache and Node Package Manager'
- name: 'Use NPM and install dependencies'
actions:
- recipe: npm-laravel
- scripts:
- kool run npm install --save-dev chokidar

- name: 'Customize Database and Cache'
actions:
- recipe: pick-db
- recipe: pick-cache
- recipe: pick-laravel-node
2 changes: 1 addition & 1 deletion templates/app/php82-roadrunner.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
app:
image: kooldev/php:8.2-nginx
command: php artisan octane:start --server=roadrunner --host=0.0.0.0 --rpc-port=6001 --port=80
command: php artisan octane:start --server=roadrunner --host=0.0.0.0 --rpc-port=6001 --port=80 --watch --poll
ports:
- "${KOOL_APP_PORT:-80}:80"
environment:
Expand Down
2 changes: 1 addition & 1 deletion templates/app/php82-swoole.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
app:
image: kooldev/php:8.2-nginx-swoole
command: php artisan octane:start --server=swoole --host=0.0.0.0 --port=80
command: php artisan octane:start --server=swoole --host=0.0.0.0 --port=80 --watch --poll
ports:
- "${KOOL_APP_PORT:-80}:80"
environment:
Expand Down

0 comments on commit c212339

Please sign in to comment.