workerman打印env
This commit is contained in:
parent
38d848c5a9
commit
fb7a0b6ffc
4
run.sh
4
run.sh
|
@ -5,6 +5,4 @@ php-fpm -D
|
|||
# 启动nginx
|
||||
nginx
|
||||
# 启动nacos心跳服务
|
||||
php ./start.php start > /dev/null
|
||||
# hold后台
|
||||
sh
|
||||
php ./start.php start
|
||||
|
|
|
@ -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";
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue