Update some code for Heroku.

This commit is contained in:
James Cole
2018-08-01 07:24:19 +02:00
parent 194073e49a
commit e3e8336602
3 changed files with 8 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ namespace FireflyIII\Providers;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
use Laravel\Passport\Passport;
use URL;
/**
* @codeCoverageIgnore
* Class AppServiceProvider.
@@ -38,6 +38,9 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void
{
Schema::defaultStringLength(191);
if('heroku' === env('APP_ENV')) {
URL::forceScheme('https');
}
}
/**