Open
Description
I am trying to get the output of the task which for testing purposes is this:
echo "Hello to a world."
sleep 3
ls -l
echo "Goodbye to a world."
My goal is to get the outputs of the commands and broadcast them so I can have a "live" terminal output on the frontend using Laravel Echo. However I am having issues at the moment, I have tried this:
DeployApp::make($app)->onOutput(function () {
$this->info('Output received...');
})->dispatch();
...and even to get output using while loop and checking for success status but nothing seems to have worked.
Any ideas?
Activity
kkz6 commentedon Apr 3, 2025
This package is defined in the way to call the log file every few seconds and then update in the database or to update entirely in a single shot. Streaming is not supported.
However you can setup a simple node application for this and you can do the same