Create daemon
The daemon:create command allows you to create a new daemon on a server.
ploi daemon:create
Create a daemon with all options:
ploi daemon:create --server=blue-ocean --command="php artisan queue:work" --system-user=ploi --processes=2 --directory=/home/ploi/example.com
Options
| Option | Description |
|---|---|
--server= | The server name or ID |
--command= | The command the daemon should execute (max 150 characters) |
--system-user= | The system user account for the daemon |
--processes= | Number of processes to spawn (positive integer) |
--directory= | Working directory for the daemon (absolute path) |
If options are not provided, you will be prompted to enter them interactively.