Did you figure this out? I'm also looking into running Octane with Valet..
Jun 26, 2021
8
Level 17
Laravel Octane w/Swoole on Mac
Anyone have any success setting Octane up on their Mac with Valet?
I created a configuration file in my local Supervisor instance:
[program:jetstream-octane]
process_name=%(program_name)s
directory=/Users/vince/Sites/jslabs/jetstream
command=/usr/local/bin/php artisan octane:start --port=9501 --watch
autostart=true
autorestart=true
user=vince
redirect_stderr=true
stdout_logfile=/Users/vince/Sites/jslabs/jetstream/storage/logs/octane.log
stopwaitsecs=3600
When I start it with supervisor I get the following error:
FATAL Exited too quickly (process log may have details)
In my octane.log I get:
INFO Server running…
Local: http://127.0.0.1:9501
Press Ctrl+C to stop the server
ERROR Watcher process has terminated. Please ensure Node and chokidar are installed.
sh: line 0: exec: : not found
Node and chokidar are most definitely installed as you can see here when I run npm list chokidar
vince@serenity jetstream % npm list chokidar
jetstream@ /Users/vince/Sites/jslabs/jetstream
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected] deduped
└─┬ [email protected]
└── [email protected] deduped
I also get a swoole error log with a ton of these entries:
[2021-06-26 19:47:20 @63617.0] WARNING set_send_buffer_size(:423): setsockopt(41, SOL_SOCKET, SO_RCVBUF, 10485760) failed, Error: No buffer space available[55]
Any help would be great.
----- ADDING
I does work fine when I run it in the console from my jetstream directory:
php artisan octane:start --port=9501 --watch
My octane-server-state.json file was created and all seems well.
Perhaps I need a simplified supervisor config?
Please or to participate in this conversation.