File tree Expand file tree Collapse file tree 5 files changed +20
-11
lines changed
resources/views/livewire/server Expand file tree Collapse file tree 5 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace App \Console \Commands ;
4
4
5
+ use App \Actions \Server \StopSentinel ;
5
6
use App \Enums \ApplicationDeploymentStatus ;
6
7
use App \Jobs \CleanupHelperContainersJob ;
7
8
use App \Models \ApplicationDeploymentQueue ;
@@ -23,6 +24,16 @@ public function handle()
23
24
{
24
25
$ this ->alive ();
25
26
get_public_ips ();
27
+ if (version_compare ('4.0.0-beta.312 ' , config ('version ' ), '<= ' )) {
28
+ $ servers = Server::all ();
29
+ foreach ($ servers as $ server ) {
30
+ $ server ->settings ->update (['is_metrics_enabled ' => false ]);
31
+ if ($ server ->isFunctional ()) {
32
+ StopSentinel::dispatch ($ server );
33
+ }
34
+ }
35
+ }
36
+
26
37
$ full_cleanup = $ this ->option ('full-cleanup ' );
27
38
$ cleanup_deployments = $ this ->option ('cleanup-deployments ' );
28
39
Original file line number Diff line number Diff line change 7
7
8
8
// The release version of your application
9
9
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
10
- 'release ' => '4.0.0-beta.311 ' ,
10
+ 'release ' => '4.0.0-beta.312 ' ,
11
11
// When left empty or `null` the Laravel environment will be used
12
12
'environment ' => config ('app.env ' ),
13
13
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- return '4.0.0-beta.311 ' ;
3
+ return '4.0.0-beta.312 ' ;
Original file line number Diff line number Diff line change @@ -146,15 +146,13 @@ class="w-full mt-8 mb-4 font-bold box-without-bg bg-coollabs hover:bg-coollabs-1
146
146
</div >
147
147
<div class =" flex items-center gap-2 pt-4 pb-2" >
148
148
<h3 >Sentinel</h3 >
149
- @if ($server -> isSentinelEnabled () )
150
- <x-forms .button wire:click =' restartSentinel' >Restart</x-forms .button >
151
- @endif
149
+ {{-- @if ($server->isSentinelEnabled()) --}}
150
+ {{-- <x-forms.button wire:click='restartSentinel'>Restart</x-forms.button> --}}
151
+ {{-- @endif --}}
152
152
</div >
153
- <div class =" w-64" >
153
+ <div >Metrics are disabled until a few bugs are fixed.</div >
154
+ {{-- <div class="w-64">
154
155
<x-forms.checkbox instantSave id="server.settings.is_metrics_enabled" label="Enable Metrics" />
155
- {{-- <x-forms.checkbox instantSave id="server.settings.is_server_api_enabled" label="Enable Server API"
156
- helper="You need to open port 12172 on your firewall. This API will be used to gather data from your server, which makes Coolify a lot faster than relying on SSH connections." />
157
- <x-forms.button wire:click='checkPortForServerApi'>Check Port for Server API</x-forms.button> --}}
158
156
</div>
159
157
<div class="pt-4">
160
158
<div class="flex flex-wrap gap-2 sm:flex-nowrap">
@@ -166,7 +164,7 @@ class="w-full mt-8 mb-4 font-bold box-without-bg bg-coollabs hover:bg-coollabs-1
166
164
<x-forms.input id="server.settings.metrics_history_days" label="Metrics history (days)" required
167
165
helper="How many days should the metrics data should be reserved." />
168
166
</div>
169
- </div >
167
+ </div> --}}
170
168
@endif
171
169
</form >
172
170
</div >
Original file line number Diff line number Diff line change 1
1
{
2
2
"coolify" : {
3
3
"v4" : {
4
- "version" : " 4.0.0-beta.311 "
4
+ "version" : " 4.0.0-beta.312 "
5
5
}
6
6
}
7
7
}
You can’t perform that action at this time.
0 commit comments