Skip to content

Commit

Permalink
Avoid redirect to install.php when DB is down
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Sep 1, 2023
1 parent 8c277d6 commit f50c7bb
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@
"drupal/pathologic": "^1",
"drupal/prepopulate": "^2.0",
"drupal/private_files_download_permission": "^3",
"drupal/prod_no_redirect": "dev-1.0.x",
"drupal/purge": "^3",
"drupal/purge_queues": "^2",
"drupal/queue_unique": "^3",
Expand Down
49 changes: 48 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions conf/drupal/config/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ module:
pathologic: 0
pfdp: 0
prepopulate: 0
prod_no_redirect: 0
purge: 0
purge_drush: 0
purge_processor_cron: 0
Expand Down
3 changes: 2 additions & 1 deletion docroot/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
*/

use Drupal\Core\DrupalKernel;
use Drupal\prod_no_redirect\ProdNoRedirectDrupalKernel;
use Symfony\Component\HttpFoundation\Request;

$autoloader = require_once 'autoload.php';

$kernel = new DrupalKernel('prod', $autoloader);
$kernel = new ProdNoRedirectDrupalKernel('prod', $autoloader);

$request = Request::createFromGlobals();
$response = $kernel->handle($request);
Expand Down

0 comments on commit f50c7bb

Please sign in to comment.