Commit 290c88e6 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Remove forceSsl call — it wipes appPushWebhook config

The forceSsl() update call only sends forceSsl:true, which causes
CapRover to reset all other fields including the git webhook config.
Wildcard cert + URL::forceScheme('https') handles HTTPS already.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 56c49d6d
......@@ -152,13 +152,12 @@ private function deployApp(Instance $instance, string $dbPassword, string $admin
],
]);
// Step 3: Enable SSL then force it
// Step 3: Enable SSL (wildcard cert handles HTTPS, forceSsl skipped
// because it's another update call that would WIPE the webhook config)
$progress('Enabling SSL...');
try {
$this->caprover->enableSsl($instance->app_name);
$this->caprover->forceSsl($instance->app_name);
} catch (\Throwable $e) {
// Wildcard cert handles this — not critical
}
// Step 4: Trigger the build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment