Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

hm

Andras Bacsaib85a0c4d09cd
diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
index 7b4a902a01..02c59bd003 100644
--- a/app/Providers/AppServiceProvider.php
+++ b/app/Providers/AppServiceProvider.php
@@ -25,9 +25,13 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void
{
if ($this->app->environment('production')) {
- $settings = InstanceSettings::first();
- if (Str::startsWith($settings->fqdn, 'https')) {
- URL::forceScheme('https');
+ try {
+ $settings = InstanceSettings::first();
+ if (Str::startsWith($settings->fqdn, 'https')) {
+ URL::forceScheme('https');
+ }
+ } catch (\Exception $e) {
+ // do nothing
}
}
}