From 4f6241d4453bd64db3d751c7371b88de73aafb87 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 20 Aug 2021 10:51:14 +0000 Subject: [PATCH] fix: not put config when update --- platform/Vercel.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/Vercel.php b/platform/Vercel.php index b7e339c..c6f7b59 100644 --- a/platform/Vercel.php +++ b/platform/Vercel.php @@ -436,6 +436,11 @@ function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = //error_log1($outPath); if ($outPath=='') return '{"error":{"message":"no outpath"}}'; + // put in config + $coderoot = __DIR__; + $coderoot = splitlast($coderoot, '/')[0] . '/'; + copy($coderoot . '.data/config.php', $outPath . '/api/.data/config.php'); + return VercelUpdate(getConfig('HerokuappId'), getConfig('APIKey'), $outPath); }