diff --git a/presets/laravel+octane/config.yml b/presets/laravel+octane/config.yml index 27c3aca7..59f1f5db 100644 --- a/presets/laravel+octane/config.yml +++ b/presets/laravel+octane/config.yml @@ -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 diff --git a/templates/app/php82-roadrunner.yml b/templates/app/php82-roadrunner.yml index 76dc3abc..7f83dae5 100644 --- a/templates/app/php82-roadrunner.yml +++ b/templates/app/php82-roadrunner.yml @@ -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: diff --git a/templates/app/php82-swoole.yml b/templates/app/php82-swoole.yml index 553903d2..bb0a9f0b 100644 --- a/templates/app/php82-swoole.yml +++ b/templates/app/php82-swoole.yml @@ -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: