Skip to content

Commit

Permalink
Merge branch '1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p committed Oct 6, 2021
2 parents e207a1c + 7d9f1e8 commit 7e7130a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
use EzSystems\DoctrineSchema\Database\DbPlatform\SqliteDbPlatform;

return static function (ContainerConfigurator $container): void {
if (!isset($_ENV['DATABASE_URL'])) {
$_ENV['DATABASE_URL'] = 'sqlite://:memory:';
}

$platform = null;
if (substr(getenv('DATABASE_URL'), 0, strlen('sqlite://')) === 'sqlite://') {
if (substr($_ENV['DATABASE_URL'], 0, strlen('sqlite://')) === 'sqlite://') {
$platform = SqliteDbPlatform::class;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
parameters:
env(SEARCH_ENGINE): 'legacy'

ezpublish:
siteaccess:
default_siteaccess: '__default_site_access__'
Expand All @@ -12,5 +15,5 @@ ezpublish:
default:
storage: ~
search:
engine: legacy
engine: '%env(SEARCH_ENGINE)%'
connection: default

0 comments on commit 7e7130a

Please sign in to comment.