mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-28 15:27:24 +08:00
update .env when run nexus:update
This commit is contained in:
@@ -127,11 +127,9 @@ class NexusUpdate extends Command
|
|||||||
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$minVersion} or above.", 'error');
|
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$minVersion} or above.", 'error');
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if ($includeComposer) {
|
$this->doLog("going to update .env file ...");
|
||||||
$this->doLog("going to update .env file ...");
|
$this->update->updateEnvFile();
|
||||||
$this->update->updateEnvFile();
|
$this->doLog("update .env file done!");
|
||||||
$this->doLog("update .env file done!");
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->doLog("going to createSymbolicLinks...");
|
$this->doLog("going to createSymbolicLinks...");
|
||||||
$this->update->createSymbolicLinks($symbolicLinks);
|
$this->update->createSymbolicLinks($symbolicLinks);
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
namespace App\Filament\Pages;
|
namespace App\Filament\Pages;
|
||||||
|
|
||||||
use App\Filament\Widgets\AnnounceMonitor\MaxUploadedUser;
|
use App\Filament\Widgets\AnnounceMonitor\MaxUploadedUser;
|
||||||
|
use App\Models\Setting;
|
||||||
use Illuminate\Contracts\Support\Htmlable;
|
use Illuminate\Contracts\Support\Htmlable;
|
||||||
|
|
||||||
class AnnounceMonitor extends \Filament\Pages\Dashboard
|
class AnnounceMonitor extends \Filament\Pages\Dashboard
|
||||||
@@ -26,6 +27,14 @@ class AnnounceMonitor extends \Filament\Pages\Dashboard
|
|||||||
return __('admin.sidebar.announce_monitor');
|
return __('admin.sidebar.announce_monitor');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public static function shouldRegisterNavigation(): bool
|
||||||
|
{
|
||||||
|
return Setting::getIsRecordAnnounceLog() && config('clickhouse.connection.host') != '';
|
||||||
|
}
|
||||||
|
|
||||||
public function getWidgets(): array
|
public function getWidgets(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user