From 199c146672e75d7992e10d1a80558e3f8e130af9 Mon Sep 17 00:00:00 2001 From: xboard Date: Sun, 15 Mar 2026 10:57:21 +0800 Subject: [PATCH] refactor: rename ws-server command and update configuration --- .docker/supervisor/supervisord.conf | 2 +- app/Console/Commands/NodeWebSocketServer.php | 2 +- compose.sample.yaml | 2 +- docs/en/installation/1panel.md | 2 +- docs/en/installation/aapanel-docker.md | 2 +- docs/en/installation/aapanel.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.docker/supervisor/supervisord.conf b/.docker/supervisor/supervisord.conf index e93eb2b..c516e4e 100644 --- a/.docker/supervisor/supervisord.conf +++ b/.docker/supervisor/supervisord.conf @@ -65,7 +65,7 @@ priority=300 [program:ws-server] process_name=%(program_name)s_%(process_num)02d -command=php /www/artisan xboard:ws-server start +command=php /www/artisan ws-server start autostart=%(ENV_ENABLE_WS_SERVER)s autorestart=true user=www diff --git a/app/Console/Commands/NodeWebSocketServer.php b/app/Console/Commands/NodeWebSocketServer.php index bafaccf..0eb1f71 100644 --- a/app/Console/Commands/NodeWebSocketServer.php +++ b/app/Console/Commands/NodeWebSocketServer.php @@ -16,7 +16,7 @@ use Workerman\Worker; class NodeWebSocketServer extends Command { - protected $signature = 'xboard:ws-server + protected $signature = 'ws-server {action=start : start | stop | restart | reload | status} {--d : Start in daemon mode} {--host=0.0.0.0 : Listen address} diff --git a/compose.sample.yaml b/compose.sample.yaml index bc891ce..68174bc 100644 --- a/compose.sample.yaml +++ b/compose.sample.yaml @@ -28,7 +28,7 @@ services: - ./:/www/ restart: always network_mode: host - command: php artisan xboard:ws-server start + command: php artisan ws-server start depends_on: - redis redis: diff --git a/docs/en/installation/1panel.md b/docs/en/installation/1panel.md index 8a44f4b..d051d13 100644 --- a/docs/en/installation/1panel.md +++ b/docs/en/installation/1panel.md @@ -59,7 +59,7 @@ location ^~ / { proxy_cache off; } ``` -> The `/ws/` location enables WebSocket real-time node synchronization via `xboard:ws-server`. This service is enabled by default and can be toggled in Admin Panel > System Settings > Server. +> The `/ws/` location enables WebSocket real-time node synchronization via `ws-server`. This service is enabled by default and can be toggled in Admin Panel > System Settings > Server. 3. Install Xboard: ```bash diff --git a/docs/en/installation/aapanel-docker.md b/docs/en/installation/aapanel-docker.md index 5ffa6a1..7c604a1 100644 --- a/docs/en/installation/aapanel-docker.md +++ b/docs/en/installation/aapanel-docker.md @@ -110,7 +110,7 @@ location ^~ / { proxy_cache off; } ``` -> The `/ws/` location enables real-time node synchronization via `xboard:ws-server`. This service is enabled by default and can be toggled in Admin Panel > System Settings > Server. +> The `/ws/` location enables real-time node synchronization via `ws-server`. This service is enabled by default and can be toggled in Admin Panel > System Settings > Server. ## Maintenance Guide diff --git a/docs/en/installation/aapanel.md b/docs/en/installation/aapanel.md index 06a1f26..49d6649 100644 --- a/docs/en/installation/aapanel.md +++ b/docs/en/installation/aapanel.md @@ -184,7 +184,7 @@ Add a WebSocket daemon process in aaPanel Supervisor: - Name: `Xboard-WS` - Run User: `www` - Running Directory: Site directory -- Start Command: `php artisan xboard:ws-server start` +- Start Command: `php artisan ws-server start` - Process Count: 1 ### 2. Configure Nginx