Starting the server
Last updated
Was this helpful?
Last updated
Was this helpful?
For Laravel installation, you may run the server with the already registered clusteer:serve
command:
The --help parameter will give you a list of parameters you can pass. By default, it will run the server with the default configuration that exists in the config folder.
If you use plain PHP, you can create your script that will run the server with ReactPHP .
It's recommended to run the server with Supervisor or another process manager. However, make sure that in case of any interruption, the node process may still be running, blocking the allocated port.
In the Supervisor configuration, make sure to add killasgroup
and stopasgroup
as described below: