Skip to content

Commit c212339

Browse files
committed
fix laravel octane dev mode - watching file changes
1 parent 852157f commit c212339

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

presets/laravel+octane/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ preset:
4747
dst: kool.yml
4848
- recipe: php-8.2-roadrunner
4949

50-
- name: 'Customize Database, Cache and Node Package Manager'
50+
- name: 'Use NPM and install dependencies'
51+
actions:
52+
- recipe: npm-laravel
53+
- scripts:
54+
- kool run npm install --save-dev chokidar
55+
56+
- name: 'Customize Database and Cache'
5157
actions:
5258
- recipe: pick-db
5359
- recipe: pick-cache
54-
- recipe: pick-laravel-node

templates/app/php82-roadrunner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
app:
33
image: kooldev/php:8.2-nginx
4-
command: php artisan octane:start --server=roadrunner --host=0.0.0.0 --rpc-port=6001 --port=80
4+
command: php artisan octane:start --server=roadrunner --host=0.0.0.0 --rpc-port=6001 --port=80 --watch --poll
55
ports:
66
- "${KOOL_APP_PORT:-80}:80"
77
environment:

templates/app/php82-swoole.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
app:
33
image: kooldev/php:8.2-nginx-swoole
4-
command: php artisan octane:start --server=swoole --host=0.0.0.0 --port=80
4+
command: php artisan octane:start --server=swoole --host=0.0.0.0 --port=80 --watch --poll
55
ports:
66
- "${KOOL_APP_PORT:-80}:80"
77
environment:

0 commit comments

Comments
 (0)