Clusteer
Github Repo
  • โšกIntroduction
  • ๐ŸŽ‰Support
  • Getting Started
    • ๐Ÿ†Benchmarks
    • ๐Ÿš€Installation
      • Docker
      • Laravel Sail (Docker)
    • โœจStarting the server
    • ๐Ÿ™ŒBasic example
  • Client commands
    • ๐Ÿ˜Cookies
    • ๐ŸžDebug console
    • ๐Ÿ‘จโ€๐ŸŽจ Screenshot
    • ๐ŸงตRequest metadata
    • โŒšWaiting for requests
  • Actions
    • #๏ธโƒฃ Keyboard commands
    • ๐ŸMouse commands
  • Advanced
    • ๐ŸŽ€Custom Script
    • ๐Ÿ‘ฉโ€๐Ÿš€ Custom Actions
Powered by GitBook
On this page
  • Vanilla PHP
  • Run with Supervisor

Was this helpful?

Edit on GitHub
  1. Getting Started

Starting the server

PreviousLaravel Sail (Docker)NextBasic example

Last updated 3 years ago

Was this helpful?

For Laravel installation, you may run the server with the already registered clusteer:serve command:

php artisan clusteer:serve --help

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.

Vanilla PHP

If you use plain PHP, you can create your script that will run the server with ReactPHP .

Run with Supervisor

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:

[program:clusteer]
process_name=%(program_name)s_%(process_num)02d
command=php artisan clusteer:serve
directory=/path/to/your/project
autostart=true
autorestart=true
killasgroup=true
stopasgroup=true
numprocs=1
redirect_stderr=true
stdout_logfile=/dev/null
โœจ
like in this command file