fix
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Livewire\Settings;
|
||||
|
||||
use App\Jobs\InstanceProxyCheckJob;
|
||||
use App\Models\InstanceSettings as ModelsInstanceSettings;
|
||||
use App\Models\Server;
|
||||
use Livewire\Component;
|
||||
@@ -193,12 +194,11 @@ class Configuration extends Component
|
||||
$this->settings->save();
|
||||
|
||||
$this->dynamic_config_path = '/data/coolify/proxy/dynamic';
|
||||
if (config('app.env') == 'local') {
|
||||
$this->server = Server::findOrFail(1);
|
||||
} else {
|
||||
$this->server = Server::findOrFail(0);
|
||||
}
|
||||
$this->server = Server::findOrFail(0);
|
||||
$this->setup_instance_fqdn();
|
||||
$this->setup_default_redirect_404();
|
||||
if ($this->settings->fqdn || $this->settings->default_redirect_404) {
|
||||
dispatch(new InstanceProxyCheckJob());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -303,12 +303,17 @@ COPY --from=$this->build_image_name /app/{$this->application->publish_directory}
|
||||
]);
|
||||
$this->activity->save();
|
||||
}
|
||||
dispatch(new ApplicationPullRequestUpdateJob(
|
||||
application_id: $this->application->id,
|
||||
pull_request_id: $this->pull_request_id,
|
||||
deployment_uuid: $this->deployment_uuid,
|
||||
status: $status
|
||||
));
|
||||
if ($this->pull_request_id) {
|
||||
dispatch(new ApplicationPullRequestUpdateJob(
|
||||
application_id: $this->application->id,
|
||||
pull_request_id: $this->pull_request_id,
|
||||
deployment_uuid: $this->deployment_uuid,
|
||||
status: $status
|
||||
));
|
||||
}
|
||||
if ($this->application->fqdn) {
|
||||
dispatch(new InstanceProxyCheckJob());
|
||||
}
|
||||
queue_next_deployment($this->application);
|
||||
}
|
||||
private function execute_in_builder(string $command)
|
||||
|
||||
@@ -29,7 +29,6 @@ class InstanceProxyCheckJob implements ShouldQueue
|
||||
{
|
||||
try {
|
||||
$container_name = 'coolify-proxy';
|
||||
$configuration_path = config('coolify.proxy_config_path');
|
||||
$servers = Server::whereRelation('settings', 'is_validated', true)->where('extra_attributes->proxy_type', ProxyTypes::TRAEFIK_V2)->get();
|
||||
|
||||
foreach ($servers as $server) {
|
||||
|
||||
Reference in New Issue
Block a user