mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2026-07-22 15:17:45 +00:00
Update UpgradeService.php
This commit is contained in:
parent
389abf2307
commit
241b0c8d32
@ -443,7 +443,7 @@ class UpgradeService extends BaseAdminService
|
||||
// 覆盖文件
|
||||
if (is_dir($code_dir . $version_no)) {
|
||||
// 忽略环境变量文件
|
||||
$exclude_files = [ '.env.development', '.env.production', '.env', '.env.dev', '.env.product', 'favicon.ico', 'niucloud.ico', 'index.json' ];
|
||||
$exclude_files = [ '.env.development', '.env.production', '.env', '.env.dev', '.env.product', 'favicon.ico', 'niucloud.ico' ];
|
||||
dir_copy($code_dir . $version_no, $to_dir, exclude_files: $exclude_files);
|
||||
if ($addon != AddonDict::FRAMEWORK_KEY) {
|
||||
( new CoreAddonInstallService($addon) )->installDir();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user