fix: not put config when update
parent
5cdf343415
commit
4f6241d445
|
@ -436,6 +436,11 @@ function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch =
|
||||||
//error_log1($outPath);
|
//error_log1($outPath);
|
||||||
if ($outPath=='') return '{"error":{"message":"no 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);
|
return VercelUpdate(getConfig('HerokuappId'), getConfig('APIKey'), $outPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue