From 118881f16ce657bcbe42e206cb3d9c9faf683edf Mon Sep 17 00:00:00 2001 From: atshike Date: Fri, 3 Jan 2025 15:56:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=89=E8=A3=85=E5=99=A8=20=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- serve/app/Http/Controllers/Install/IndexController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serve/app/Http/Controllers/Install/IndexController.php b/serve/app/Http/Controllers/Install/IndexController.php index 06f5515..b8d5997 100644 --- a/serve/app/Http/Controllers/Install/IndexController.php +++ b/serve/app/Http/Controllers/Install/IndexController.php @@ -119,8 +119,6 @@ class IndexController extends Controller } try { - exec('cp .env.example .env'); - $this->updateEnv('DB_HOST', $params['host']); $this->updateEnv('DB_PORT', $params['port']); $this->updateEnv('DB_DATABASE', $params['name']); @@ -144,6 +142,8 @@ class IndexController extends Controller 'updated_at' => now(), ]); + Artisan::call('cache:clear'); + } catch (\Exception $e) { return redirect('install?step='.$step - 1) ->withErrors('sql_error:'.$e->getMessage())