mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
optimization install
This commit is contained in:
parent
406f1ee80d
commit
e57a70970f
@ -58,7 +58,9 @@ class V2boardInstall extends Command
|
|||||||
]);
|
]);
|
||||||
\Artisan::call('config:clear');
|
\Artisan::call('config:clear');
|
||||||
\Artisan::call('config:cache');
|
\Artisan::call('config:cache');
|
||||||
if (!DB::connection()->getPdo()) {
|
try {
|
||||||
|
DB::connection()->getPdo();
|
||||||
|
} catch (\Exception $e) {
|
||||||
abort(500, '数据库连接失败');
|
abort(500, '数据库连接失败');
|
||||||
}
|
}
|
||||||
$file = \File::get(base_path() . '/database/install.sql');
|
$file = \File::get(base_path() . '/database/install.sql');
|
||||||
|
Loading…
Reference in New Issue
Block a user