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

remotes/origin/mvc-implementation
Dorian HODIN 2 years ago
parent e9e80d3259
commit 75b6b2818e

@ -92,7 +92,7 @@ steps:
IMAGENAME: mariadb:10.5 IMAGENAME: mariadb:10.5
CONTAINERNAME: mysql_location CONTAINERNAME: mysql_location
COMMAND: create COMMAND: create
# OVERWRITE: false OVERWRITE: true
# PRIVATE: true # PRIVATE: true
CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD: CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD:
from_secret: db_root_password from_secret: db_root_password

@ -4,7 +4,7 @@ function connection(): bool|int|mysqli
{ {
$username = $_ENV["USER"]; //Get the username $username = $_ENV["USER"]; //Get the username
$host = "https://codefirst.iut.uca.fr/containers/mysql_location-dorianhodin"; //Get the url of the database $host = "host.codefirst.iut.uca.fr/containers/mysql_location-dorianhodin"; //Get the url of the database
$password = $_ENV["PASSWORD"]; //Get the password for the user selected $password = $_ENV["PASSWORD"]; //Get the password for the user selected
$db_name = $_ENV["DATABASE"]; //Get the name of the database $db_name = $_ENV["DATABASE"]; //Get the name of the database

Loading…
Cancel
Save