diff --git a/run.sh b/run.sh index 615da6a..8626b27 100644 --- a/run.sh +++ b/run.sh @@ -5,6 +5,4 @@ php-fpm -D # 启动nginx nginx # 启动nacos心跳服务 -php ./start.php start > /dev/null -# hold后台 -sh +php ./start.php start diff --git a/start.php b/start.php index 3a7fff8..298e80b 100644 --- a/start.php +++ b/start.php @@ -47,7 +47,8 @@ $task->onWorkerStart = function(Worker $task) use ($serverAddr, $nacosAddr) }' ], ]); - echo "send heartbeat: " . $response->getBody()->getContents(); + echo "send heartbeat: " . $response->getBody()->getContents() . "\n"; + echo json_encode($_ENV, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE); echo "\n"; }); };