From 5f6f84bb4c4e34aeb7129b72cc79f575f530d938 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Mon, 13 Jul 2020 10:26:06 +0800 Subject: [PATCH] fix environment check --- bootstrap/chkenv.php | 13 +++++++++++++ public/index.php | 9 +++++++++ 2 files changed, 22 insertions(+) diff --git a/bootstrap/chkenv.php b/bootstrap/chkenv.php index d079d15a..be6f4a75 100644 --- a/bootstrap/chkenv.php +++ b/bootstrap/chkenv.php @@ -1,5 +1,7 @@ '. diff --git a/public/index.php b/public/index.php index a49ecf2b..b7be5f35 100755 --- a/public/index.php +++ b/public/index.php @@ -16,6 +16,15 @@ define('LARAVEL_START', microtime(true)); require __DIR__.'/../vendor/autoload.php'; +/* +|-------------------------------------------------------------------------- +| Environment Check +|-------------------------------------------------------------------------- +*/ +if (!file_exists(__DIR__.'/../storage/install.lock')) { + require __DIR__.'/../bootstrap/chkenv.php'; +} + /* |-------------------------------------------------------------------------- | Turn On The Lights