upload preivew + es command

This commit is contained in:
xiaomlove
2022-04-01 23:13:42 +08:00
parent 5f6b3ceb53
commit 4172f7c07c
49 changed files with 347 additions and 126 deletions
+3
View File
@@ -428,6 +428,9 @@ class Install
if ($key == 'CACHE_DRIVER') {
$newData[$key] = 'redis';
}
if ($key == 'QUEUE_CONNECTION') {
$newData[$key] = 'redis';
}
if ($scene == 'install' || !file_exists($envFile)) {
if ($key == 'APP_ENV') {
$newData[$key] = 'production';
+2
View File
@@ -11,6 +11,8 @@ require ROOT_PATH . 'include/constants.php';
$withLaravel = false;
if (file_exists(ROOT_PATH . '.env')) {
require ROOT_PATH . 'include/eloquent.php';
require ROOT_PATH . 'classes/class_cache_redis.php';
$Cache = new class_cache_redis();
$withLaravel = true;
}
define('WITH_LARAVEL', $withLaravel);