laravel-websockets icon indicating copy to clipboard operation
laravel-websockets copied to clipboard

Question - Disable output entirely

Open Zen0x7 opened this issue 4 years ago • 1 comments

Websockets server is nice but this produces too much output.

There are exist some option to disable the process output?

Zen0x7 avatar Dec 03 '21 23:12 Zen0x7

I searched but I didn't find any good solution. But you can redirect output to /dev/null file.

php artisan websockets:serve >/dev/null 2>&1

If you're using foreverjs then you can use this command:

forever -a -s --uid "ws-server" start -c php artisan websockets:serve --host=127.0.0.1 --port=16000

The -s parameters means silent mode in forever.

kodmanyagha avatar Apr 05 '22 08:04 kodmanyagha