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

remotes/origin/mvc-implementation
Dorian HODIN 2 years ago
parent dc4c7ac3c0
commit f177f6e222

@ -95,7 +95,7 @@ steps:
CONTAINERNAME: mysql_location
COMMAND: create
# OVERWRITE: true
# PRIVATE: true
PRIVATE: true
CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD:
from_secret: db_root_password
CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE:

@ -3,9 +3,9 @@
function connection(): bool|int|mysqli
{
$username = "root"; //Get the username
$username = $_ENV["USER"]; //Get the username
$host = $_ENV["HOST"]; //Get the url of the database
$password = $_ENV["ROOT_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
try { //Try to connect to the database

Loading…
Cancel
Save