diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-09-25 00:03:22 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-09-25 01:16:12 +0200 |
commit | 449e2cdd00632acff63bb75c5282c3aa2642b59f (patch) | |
tree | c677b8d03f0287b4a9cdc2deb2e59a63414085e3 /config | |
parent | c5c0a602aab908ed7bac3a87b7a574bef0a5ed8f (diff) |
Added env function, added GitLab CI code coverage config
Diffstat (limited to 'config')
-rw-r--r-- | config/config.default.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/config.default.php b/config/config.default.php index c2d742ef..1bad9668 100644 --- a/config/config.default.php +++ b/config/config.default.php @@ -5,10 +5,10 @@ return [ // MySQL-Connection Settings 'database' => [ - 'host' => 'localhost', - 'user' => 'root', - 'pw' => '', - 'db' => 'engelsystem', + 'host' => env('MYSQL_HOST', (env('CI', false) ? 'mysql' : 'localhost')), + 'user' => env('MYSQL_USER', 'root'), + 'pw' => env('MYSQL_PASSWORD', ''), + 'db' => env('MYSQL_DATABASE', 'engelsystem'), ], // For accessing stats |