This commit is contained in:
Andras Bacsai committed 2023-05-25 22:59:33 +02:00
1 parent 604f6832da
commit e872dc8edb
2 files changed
+14 -25

No files matched your search

+1 -6
View File
@@ -11,13 +11,8 @@ class ForceUpgrade extends Component
public function upgrade()
{
try {
$server_name = 'localhost';
if (config('app.env') === 'local') {
$server_name = 'testing-local-docker-container';
}
$server = Server::where('name', $server_name)->firstOrFail();
$this->emit('updateInitiated');
dispatch(new InstanceAutoUpdateJob(force: true, server: $server));
dispatch(new InstanceAutoUpdateJob(force: true));
} catch (\Exception $e) {
return general_error_handler($e, $this);
}