Merge pull request #1533 from coollabsio/next

v4.0.0-.beta.156
This commit is contained in:
Andras Bacsai 2023-12-11 15:24:15 +01:00 committed by GitHub
commit 8ed4b540e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View File

@ -79,11 +79,11 @@ class Controller extends BaseController
if (isInstanceAdmin()) {
$settings = InstanceSettings::get();
$database = StandalonePostgresql::whereName('coolify-db')->first();
if ($database->status !== 'running') {
$database->status = 'running';
$database->save();
}
if ($database) {
if ($database->status !== 'running') {
$database->status = 'running';
$database->save();
}
$s3s = S3Storage::whereTeamId(0)->get();
}
return view('settings.configuration', [

View File

@ -70,7 +70,7 @@ class GetLogs extends Component
}
public function getLogs($refresh = false)
{
if (!$refresh && $this->resource->getMorphClass() === 'App\Models\Service') return;
if (!$refresh && $this->resource?->getMorphClass() === 'App\Models\Service') return;
if ($this->container) {
if ($this->showTimeStamps) {
$sshCommand = generateSshCommand($this->server, "docker logs -n {$this->numberOfLines} -t {$this->container}");

View File

@ -7,7 +7,7 @@ return [
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
'release' => '4.0.0-beta.155',
'release' => '4.0.0-beta.156',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),

View File

@ -1,3 +1,3 @@
<?php
return '4.0.0-beta.155';
return '4.0.0-beta.156';

View File

@ -4,7 +4,7 @@
"version": "3.12.36"
},
"v4": {
"version": "4.0.0-beta.154"
"version": "4.0.0-beta.156"
}
}
}