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

remotes/origin/mvc-implementation
Dorian HODIN 3 years ago
parent 27db852894
commit 41ed90ea2f

@ -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

@ -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

Loading…
Cancel
Save