This commit is contained in:
wandoubaba 2023-07-04 13:53:31 +08:00
parent caf4f593c1
commit f99a558897

View File

@ -19,8 +19,8 @@ $worker->onMessage = function(TcpConnection $connection, Request $request)
{
$work_dir = isset($_ENV['WORK_DIR']) ? $_ENV['WORK_DIR'] : null;
$branch = isset($_ENV['BRANCH']) ? $_ENV['BRANCH'] : null;
var_dump($request->post());
$connection->send($request->post());
var_dump(json_encode($request->post(), JSON_UNESCAPED_UNICODE));
// $connection->send($request->post());
if ($work_dir && $branch) {
// chdir($work_dir);