mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
[CI] Fix MySQL
This commit is contained in:
parent
ca586267b4
commit
2df02aee73
@ -34,6 +34,7 @@ services:
|
||||
variables:
|
||||
COMPOSER: 'inc/test/composer.json'
|
||||
# Configure mysql environment variables (https://hub.docker.com/r/_/mysql/)
|
||||
MYSQL_HOST: '127.0.0.1'
|
||||
MYSQL_DATABASE: mysql_database
|
||||
MYSQL_USERNAME: root
|
||||
MYSQL_PASSWORD: mysql_strong_password
|
||||
|
@ -3,6 +3,7 @@
|
||||
class EnvSettings extends Settings {
|
||||
public function __construct($connect = true) {
|
||||
parent::__construct(false);
|
||||
$this->host = getenv("MYSQL_HOST");
|
||||
$this->database = getenv("MYSQL_DATABASE");
|
||||
$this->username = getenv("MYSQL_USERNAME");
|
||||
$this->password = getenv("MYSQL_PASSWORD");
|
||||
|
Loading…
x
Reference in New Issue
Block a user