Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions wire/core/ProcessWire.php
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,14 @@ public static function buildConfig($rootPath = '', $rootURL = null, array $optio
/** @noinspection PhpIncludeInspection */
@require($configFile);
}

// Include local config file that is typically used
// when deploying to multiple environments (staging/production)
$configFileLocal = $sitePath . "config-local.php";
if(is_file($configFileLocal)) {
/** @noinspection PhpIncludeInspection */
@require($configFileLocal);
}

if($httpHost) {
$config->httpHost = $httpHost;
Expand Down