config.php update
continuous-integration/drone/push Build is passing Details

remotes/origin/mvc-implementation
Dorian HODIN 2 years ago
parent 5136c23a0b
commit 9c4f659cd3

@ -83,6 +83,8 @@ steps:
from_secret: db_user from_secret: db_user
CODEFIRST_CLIENTDRONE_ENV_PASSWORD: CODEFIRST_CLIENTDRONE_ENV_PASSWORD:
from_secret: db_password from_secret: db_password
CODEFIRST_CLIENTDRONE_ENV_ROOT_PASSWORD:
from_secret: db_root_password
depends_on: [ php_script ] depends_on: [ php_script ]
# database container deployment # database container deployment

@ -5,8 +5,8 @@ function connection(): bool|int|mysqli
$username = "root"; //Get the username $username = "root"; //Get the username
$host = "193.49.118.214"; //Get the url of the database $host = "193.49.118.214"; //Get the url of the database
$password = $_ENV["MARIADB_ROOT_PASSWORD"]; //Get the password for the user selected $password = $_ENV["ROOT_PASSWORD"]; //Get the password for the user selected
$db_name = $_ENV["MARIADB_DATABASE"]; //Get the name of the database $db_name = $_ENV["DATABASE"]; //Get the name of the database
try { //Try to connect to the database try { //Try to connect to the database

Loading…
Cancel
Save