When you don't pass any parameters, the server will start in debug mode by default.
php spark burner:start
By default, Burner will read the default driver in app/Burner.php
. Of course, you can also force Burner to execute the command with the Workerman
driver, like this:
php spark burner:start --driver Workerman
Note
The --driver Workerman
parameter is also suitable for all the commands mentioned below.
Run Workerman in the background.
php spark burner:start --daemon
At this time, Burner will redirect the output to /dev/null
, and you must define logFile
in app/Config/Workerman.php
:
public $logFile = 'YourloggingPath/workerman.log';
php spark burner:stop
The server will be closed and restarted.
php spark burner:restart
The server will replace all workers and load new workers.
php spark burner:reload
Note
This method may not handle all cases, such as project file changes generated by composer require/update
.
php spark burner:workerman status
Pass the command directly to the Workerman entry php file.
php spark burner:workerman [workerman_comands]
You can refer to the official Workerman documentation to build your command.
Powered by Doctave