From 45740065b23a5e8f7c7d5d11aed131a49a2c928a Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Mon, 28 Nov 2022 13:10:34 +0100 Subject: [PATCH] config.php update --- .drone.yml | 2 +- Sources/php_script/script/config.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 329b836..ecdd483 100644 --- a/.drone.yml +++ b/.drone.yml @@ -94,7 +94,7 @@ steps: IMAGENAME: mariadb:10.5 CONTAINERNAME: mysql_location COMMAND: create - OVERWRITE: true + # OVERWRITE: true # PRIVATE: true CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD: from_secret: db_root_password diff --git a/Sources/php_script/script/config.php b/Sources/php_script/script/config.php index d91bb87..b6bd3f1 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -4,8 +4,8 @@ function connection(): bool|int|mysqli { $username = "root"; //Get the username - $host = "localhost:3306"; //Get the url of the database - $password = ""; //Get the password for the user selected + $host = "193.49.118.214"; //Get the url of the database + $password = $_ENV["ROOT_PASSWORD"]; //Get the password for the user selected $db_name = $_ENV["DATABASE"]; //Get the name of the database try { //Try to connect to the database