Skip to content

Commit 52e7673

Browse files
committed
Fix #1022
1 parent 4b8b128 commit 52e7673

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/sprinkles/core/config/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
'db' => [
126126
'default' => [
127127
'driver' => getenv('DB_DRIVER') ?: 'mysql',
128-
'host' => getenv('DB_HOST') ?: null,
128+
'host' => getenv('DB_HOST') ?: 'localhost',
129129
'port' => getenv('DB_PORT') ?: null,
130130
'database' => getenv('DB_NAME') ?: null,
131131
'username' => getenv('DB_USER') ?: null,

app/sprinkles/core/src/Bakery/SetupDbCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7777

7878
// Get keys
7979
$keys = [
80-
'DB_HOST' => ($dotenvEditor->keyExists('DB_HOST')) ? $dotenvEditor->getValue('DB_HOST') : '',
80+
'DB_HOST' => ($dotenvEditor->keyExists('DB_HOST')) ? $dotenvEditor->getValue('DB_HOST') : 'localhost',
8181
'DB_NAME' => ($dotenvEditor->keyExists('DB_NAME')) ? $dotenvEditor->getValue('DB_NAME') : '',
8282
'DB_USER' => ($dotenvEditor->keyExists('DB_USER')) ? $dotenvEditor->getValue('DB_USER') : '',
8383
'DB_PASSWORD' => ($dotenvEditor->keyExists('DB_PASSWORD')) ? $dotenvEditor->getValue('DB_PASSWORD') : '',

0 commit comments

Comments
 (0)