使用宝塔 部署 执行出现以下问题
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table (0.02 seconds)
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table (0.02 seconds)
Migrating: 2019_08_19_000000_create_failed_jobs_table
Migrated: 2019_08_19_000000_create_failed_jobs_table (0.08 seconds)
Migrating: 2019_09_26_143444_add_avatar_and_introduction_to_users_table
Migrated: 2019_09_26_143444_add_avatar_and_introduction_to_users_table (0.09 seconds)
Migrating: 2019_09_26_154619_create_categories_table
Migrated: 2019_09_26_154619_create_categories_table (0.02 seconds)
Migrating: 2019_09_26_155051_seed_categories_data
Migrated: 2019_09_26_155051_seed_categories_data (0 seconds)
Migrating: 2019_09_26_155555_create_topics_table
Migrated: 2019_09_26_155555_create_topics_table (0.18 seconds)
Migrating: 2019_09_27_114516_create_replies_table
Migrated: 2019_09_27_114516_create_replies_table (0.1 seconds)
Migrating: 2019_09_27_140305_create_notifications_table
Migrated: 2019_09_27_140305_create_notifications_table (0.11 seconds)
Migrating: 2019_09_27_140501_add_notification_count_to_users_table
Migrated: 2019_09_27_140501_add_notification_count_to_users_table (0.39 seconds)
Migrating: 2019_09_27_144124_create_permission_tables
Symfony\Component\Debug\Exception\FatalThrowableError : Call to a member function connect() on null
at /www/wwwroot/cocky.fun/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php:107
103|
104| $options = $this->config['options'] ?? [];
105|
106| if (isset($this->config[$name])) {
> 107| return $this->connector()->connect(
108| $this->parseConnectionConfiguration($this->config[$name]),
109| $options
110| );
111| }
Exception trace:
1 Illuminate\Redis\RedisManager::resolve("cache")
/www/wwwroot/cocky.fun/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php:88
2 Illuminate\Redis\RedisManager::connection("cache")
/www/wwwroot/cocky.fun/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php:242
推荐文章: